summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang/library/slang_vertex_builtin.gc
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-02-25 19:45:45 -0700
committerBrian Paul <brianp@vmware.com>2010-02-25 20:11:55 -0700
commit1f2b495b5567897acbd236f302a1e2b9b5faec65 (patch)
tree5ed40e51c53eabfd2163bd771d60f28063c15e5b /src/mesa/shader/slang/library/slang_vertex_builtin.gc
parent1edd444c2e9afadb56df55682ae606b5cefd811c (diff)
glsl: implement support for GL_EXT_texture_array
GL_EXT_texture_array is different from the existing GL_MESA_texture_array support in that the former is only supported for GLSL, not fixed-function. The shadow compare versions of the sampler functions haven't been tested yet. The non-shadow versions have been tested with a new piglit test.
Diffstat (limited to 'src/mesa/shader/slang/library/slang_vertex_builtin.gc')
-rw-r--r--src/mesa/shader/slang/library/slang_vertex_builtin.gc20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/library/slang_vertex_builtin.gc b/src/mesa/shader/slang/library/slang_vertex_builtin.gc
index 9ad5f35425..0c67c2ef20 100644
--- a/src/mesa/shader/slang/library/slang_vertex_builtin.gc
+++ b/src/mesa/shader/slang/library/slang_vertex_builtin.gc
@@ -188,3 +188,23 @@ vec4 shadow2DProjLod(const sampler2DShadow sampler, const vec4 coord,
__asm vec4_tex_2d_bias_shadow __retVal, sampler, pcoord;
}
+
+//// GL_EXT_texture_array
+
+vec4 texture1DArrayLod(const sampler1DArray sampler, const vec2 coord, const float lod)
+{
+ vec4 coord4;
+ coord4.xy = coord;
+ coord4.w = lod;
+ __asm vec4_tex_1d_array_bias __retVal, sampler, coord4;
+}
+
+
+vec4 texture2DArrayLod(const sampler2DArray sampler, const vec3 coord, const float lod)
+{
+ vec4 coord4;
+ coord4.xyz = coord;
+ coord4.w = lod;
+ __asm vec4_tex_2d_array_bias __retVal, sampler, coord4;
+}
+