[Mesa-dev] [PATCH 3/3] glsl: reject image qualifiers with non-image types inside uniform blocks

Timothy Arceri tarceri at itsqueeze.com
Fri Apr 28 00:10:11 UTC 2017



On 28/04/17 10:06, Timothy Arceri wrote:
> On 27/04/17 02:50, Samuel Pitoiset wrote:
>> Interface blocks don't allow to declare opaque types and atomic
>> counters/images are forbidden inside structures.
> 
> The above comment seems unrelated to me. With that removed and the below 
> comment changed to something like:
> 
> Fixes the following ARB_bindless_texture piglit tests:

ARB_bindless_texture -> ARB_shader_image_load_store

> 
> format-layout-with-non-image-type.frag
> memory-qualifier-with-non-image-type.frag
> 
> The series is:
> 
> Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
> 
>>
>> Fixes format-layout-with-non-image-type.frag and
>> memory-qualifier-with-non-image-type.frag.
>>
>> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
>> ---
>>   src/compiler/glsl/ast_to_hir.cpp | 2 ++
>>   1 file changed, 2 insertions(+)
>>
>> diff --git a/src/compiler/glsl/ast_to_hir.cpp 
>> b/src/compiler/glsl/ast_to_hir.cpp
>> index a1463c38c8..6b6be818b3 100644
>> --- a/src/compiler/glsl/ast_to_hir.cpp
>> +++ b/src/compiler/glsl/ast_to_hir.cpp
>> @@ -6890,6 +6890,8 @@ 
>> ast_process_struct_or_iface_block_members(exec_list *instructions,
>>                             "to struct or interface block members");
>>         }
>> +      validate_image_qualifier_for_type(state, &loc, qual, decl_type);
>> +
>>         /* From Section 4.4.2.3 (Geometry Outputs) of the GLSL 4.50 spec:
>>          *
>>          *   "A block member may be declared with a stream identifier, 
>> but
>>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list