A couple of fixes to the GL_QCOM_image_processing2 support (#3578)

1) handle the extension requirements of GL_QCOM_image_processing2
   correctly
2) add QCOM image processing decorations to ids only once.
This commit is contained in:
Wooyoung Kim 2024-04-23 15:34:51 -07:00 committed by GitHub
parent b9b8fd917b
commit a4f870053f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 35 additions and 10 deletions

View file

@ -1,17 +1,19 @@
spv.tpipBlockMatchGatherSAD.frag
Validation failed
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 72
Capability Shader
Capability Bad
Capability TextureBlockMatchQCOM
Capability TextureBlockMatch2QCOM
Extension "SPV_QCOM_image_processing"
Extension "SPV_QCOM_image_processing2"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 13 41
ExecutionMode 4 OriginUpperLeft
Source GLSL 450
SourceExtension "GL_QCOM_image_processing"
SourceExtension "GL_QCOM_image_processing2"
Name 4 "main"
Name 9 "tgt_coords"

View file

@ -1,17 +1,19 @@
spv.tpipBlockMatchGatherSSD.frag
Validation failed
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 72
Capability Shader
Capability Bad
Capability TextureBlockMatchQCOM
Capability TextureBlockMatch2QCOM
Extension "SPV_QCOM_image_processing"
Extension "SPV_QCOM_image_processing2"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 13 41
ExecutionMode 4 OriginUpperLeft
Source GLSL 450
SourceExtension "GL_QCOM_image_processing"
SourceExtension "GL_QCOM_image_processing2"
Name 4 "main"
Name 9 "tgt_coords"

View file

@ -6,7 +6,7 @@ Validation failed
Capability Shader
Capability TextureBlockMatchQCOM
Capability Bad
Capability TextureBlockMatch2QCOM
Extension "SPV_QCOM_image_processing"
Extension "SPV_QCOM_image_processing2"
1: ExtInstImport "GLSL.std.450"
@ -39,7 +39,6 @@ Validation failed
Decorate 44(tex2D_src1) DecorationBlockMatchTextureQCOM
Decorate 48(samp) DecorationBlockMatchSamplerQCOM
Decorate 53(tex2D_src2) DecorationBlockMatchTextureQCOM
Decorate 48(samp) DecorationBlockMatchSamplerQCOM
Decorate 61(target_samp) DescriptorSet 0
Decorate 61(target_samp) Binding 4
Decorate 64(ref_samp) DescriptorSet 0

View file

@ -6,7 +6,7 @@ Validation failed
Capability Shader
Capability TextureBlockMatchQCOM
Capability Bad
Capability TextureBlockMatch2QCOM
Extension "SPV_QCOM_image_processing"
Extension "SPV_QCOM_image_processing2"
1: ExtInstImport "GLSL.std.450"
@ -39,7 +39,6 @@ Validation failed
Decorate 44(tex2D_src1) DecorationBlockMatchTextureQCOM
Decorate 48(samp) DecorationBlockMatchSamplerQCOM
Decorate 53(tex2D_src2) DecorationBlockMatchTextureQCOM
Decorate 48(samp) DecorationBlockMatchSamplerQCOM
Decorate 61(target_samp) DescriptorSet 0
Decorate 61(target_samp) Binding 4
Decorate 64(ref_samp) DescriptorSet 0

View file

@ -1,4 +1,5 @@
#version 450
#extension GL_QCOM_image_processing : require
#extension GL_QCOM_image_processing2 : require
precision highp float;

View file

@ -1,4 +1,5 @@
#version 450
#extension GL_QCOM_image_processing : require
#extension GL_QCOM_image_processing2 : require
precision highp float;