diff options
author | Brian Paul <brianp@vmware.com> | 2009-02-20 13:44:43 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-02-20 13:44:43 -0700 |
commit | 0ea95ae7420b4217b5c10c7593eb2e08e971bf72 (patch) | |
tree | ef9c5bf4a9743ebb5dd82d3408b6050635e52f29 /src/mesa/shader/slang/library/slang_vertex_builtin.gc | |
parent | 44e018c09e7aeba9fd9f4c380da224bd6622c470 (diff) |
glsl: use new IR opcodes for TEX instructions with shadow comparison
Such TEX instructions will have the TexShadow flag set.
The gl_program::ShadowSamplers field is now set in the linker. We missed
that before.
Diffstat (limited to 'src/mesa/shader/slang/library/slang_vertex_builtin.gc')
-rw-r--r-- | src/mesa/shader/slang/library/slang_vertex_builtin.gc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/shader/slang/library/slang_vertex_builtin.gc b/src/mesa/shader/slang/library/slang_vertex_builtin.gc index 28d99a77b3..9ad5f35425 100644 --- a/src/mesa/shader/slang/library/slang_vertex_builtin.gc +++ b/src/mesa/shader/slang/library/slang_vertex_builtin.gc @@ -156,7 +156,7 @@ vec4 shadow1DLod(const sampler1DShadow sampler, const vec3 coord, const float lo vec4 coord4; coord4.xyz = coord; coord4.w = lod; - __asm vec4_tex_1d_bias __retVal, sampler, coord4; + __asm vec4_tex_1d_bias_shadow __retVal, sampler, coord4; } vec4 shadow1DProjLod(const sampler1DShadow sampler, const vec4 coord, @@ -166,7 +166,7 @@ vec4 shadow1DProjLod(const sampler1DShadow sampler, const vec4 coord, pcoord.x = coord.x / coord.w; pcoord.z = coord.z; pcoord.w = lod; - __asm vec4_tex_1d_bias __retVal, sampler, pcoord; + __asm vec4_tex_1d_bias_shadow __retVal, sampler, pcoord; } @@ -175,7 +175,7 @@ vec4 shadow2DLod(const sampler2DShadow sampler, const vec3 coord, const float lo vec4 coord4; coord4.xyz = coord; coord4.w = lod; - __asm vec4_tex_2d_bias __retVal, sampler, coord4; + __asm vec4_tex_2d_bias_shadow __retVal, sampler, coord4; } vec4 shadow2DProjLod(const sampler2DShadow sampler, const vec4 coord, @@ -185,6 +185,6 @@ vec4 shadow2DProjLod(const sampler2DShadow sampler, const vec4 coord, pcoord.xy = coord.xy / coord.w; pcoord.z = coord.z; pcoord.w = lod; - __asm vec4_tex_2d_bias __retVal, sampler, pcoord; + __asm vec4_tex_2d_bias_shadow __retVal, sampler, pcoord; } |