OSDN Git Service

glsl: fix xfb_offset unsized array validation
authorTimothy Arceri <timothy.arceri@collabora.com>
Fri, 27 May 2016 09:07:19 +0000 (19:07 +1000)
committerTimothy Arceri <timothy.arceri@collabora.com>
Mon, 30 May 2016 05:11:47 +0000 (15:11 +1000)
commitaac90ba2920cf5ceb4df6dba776dd3952780e456
tree54527553f21f4df54c65152f11ee1e324b892bd9
parent87fb5aa3e741e9b93bf09509ff14d4cbc683e482
glsl: fix xfb_offset unsized array validation

This partially fixes CTS test:
GL44-CTS.enhanced_layouts.xfb_get_program_resource_api

The test now fails at a tes evaluation shader with unsized output arrays.

The ARB_enhanced_layouts spec says:

   "It is a compile-time error to apply xfb_offset to the declaration of an
   unsized array."

So this seems like a bug in the CTS.

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/compiler/glsl/ast_to_hir.cpp
src/compiler/glsl/ir.cpp
src/compiler/glsl/ir.h
src/compiler/glsl/link_varyings.cpp