mesa/src/compiler
Roland Scheidegger 0295db2a8b glsl: add forgotten textureOffset function for sampler2DArrayShadow
This was part of EXT_gpu_shader4 - as such it should have been supported
by glsl 130.
It was however forgotten, and not added until glsl 430 - with the wrong
syntax no less (glsl 430 mentions it was overlooked).
glsl 440 (but revision 8 only) fixed this finally for good.
At least nvidia supports this with just version glsl version 1.30 as well
(the spec doesn't explicitly say it should be supported retroactively),
so just add this to the other glsl 130 textureOffset functions.

Passes a (hacked) piglit tex-miplevel-selection test (2DArrayShadow
textureOffset -auto) with llvmpipe.

v2: fix up comment (by Ian), add testing to commit message.

Reviewed-by: Dave Airlie <airlied@gmail.com>
2016-04-21 02:38:46 +02:00
..
glsl glsl: add forgotten textureOffset function for sampler2DArrayShadow 2016-04-21 02:38:46 +02:00
nir nir: rename nir_foreach_block*() to nir_foreach_block*_call() 2016-04-20 09:47:05 -07:00
spirv spirv: Trivially handle the NonWriteable decoration 2016-04-20 10:33:23 -07:00
.gitignore compiler: fix .gitignore for glsl_compiler 2016-02-03 13:32:46 -05:00
Android.glsl.gen.mk glsl: move the android build scripts a level up 2016-04-11 19:08:23 +01:00
Android.glsl.mk glsl: move the android build scripts a level up 2016-04-11 19:08:23 +01:00
Android.mk compiler: android: flesh out nir into separate makefile 2016-04-11 19:08:23 +01:00
Android.nir.gen.mk compiler: android: flesh out nir into separate makefile 2016-04-11 19:08:23 +01:00
Android.nir.mk compiler: android: flesh out nir into separate makefile 2016-04-11 19:08:23 +01:00
builtin_type_macros.h glsl/types: Add a bare "sampler" type 2016-02-13 17:22:36 -08:00
glsl_types.cpp glsl: Rename "vertex_input_slots" -> "is_vertex_input" 2016-04-13 11:00:21 -07:00
glsl_types.h glsl: Rename "vertex_input_slots" -> "is_vertex_input" 2016-04-13 11:00:21 -07:00
Makefile.am compiler: automake: flesh out NIR into separate makefile. 2016-04-11 19:08:23 +01:00
Makefile.glsl.am compiler: automake: split out glsl into separate makefile 2016-04-11 19:08:23 +01:00
Makefile.nir.am Merge remote-tracking branch 'public/master' into vulkan 2016-04-13 20:25:39 -07:00
Makefile.sources spirv: Move to compiler/ 2016-04-14 10:28:47 -07:00
nir_types.cpp glsl: Rename "vertex_input_slots" -> "is_vertex_input" 2016-04-13 11:00:21 -07:00
nir_types.h glsl: Rename "vertex_input_slots" -> "is_vertex_input" 2016-04-13 11:00:21 -07:00
SConscript scons: Build NIR. 2016-04-14 16:38:59 +01:00
SConscript.glsl glsl: move the scons build script a level up 2016-04-11 19:08:23 +01:00
SConscript.nir scons: Build NIR. 2016-04-14 16:38:59 +01:00
shader_enums.c glsl/shader_enums: Add the other two compute builtins 2016-04-11 13:53:00 -07:00
shader_enums.h glsl/shader_enums: Add the other two compute builtins 2016-04-11 13:53:00 -07:00