mesa/src/glsl/builtins
Kenneth Graunke 15ca0ca1b6 glsl/builtins: Fix ARB_texture_cube_map_array built-in availability.
This patch adds texture() for isamplerCubeArray and usamplerCubeArray,
which were entirely missing.

It also makes texture() with a LOD bias fragment shader specific.  The
main GLSL specification explicitly says that texturing with LOD bias
should not be allowed for vertex shaders.

Affects Piglit's ARB_texture_cube_map_array/compiler/tex_bias-01.vert.
which tries to use bias in a vertex shader.  Currently, it expects this
to pass (so this patch regresses the test), but I've sent a patch to
reverse the expected behavior (so this patch would fix the updated test):
http://lists.freedesktop.org/archives/piglit/2013-June/006123.html

NOTE: This is a candidate for stable branches.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
2013-07-02 01:01:30 -07:00
..
glsl Revert "glsl: Replace constant-index vector array accesses with swizzles" 2013-04-02 12:24:16 -07:00
ir glsl: Add new bit built-ins IR and prototypes from ARB_gpu_shader5. 2013-05-06 10:17:13 -07:00
profiles glsl/builtins: Fix ARB_texture_cube_map_array built-in availability. 2013-07-02 01:01:30 -07:00
tools mesa: Add infrastructure for ARB_gpu_shader5. 2013-05-06 10:17:12 -07:00