<div dir="ltr">On 28 June 2013 14:22, Kenneth Graunke <span dir="ltr"><<a href="mailto:kenneth@whitecape.org" target="_blank">kenneth@whitecape.org</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This patch adds texture() for isamplerCubeArray and usamplerCubeArray,<br>
which were entirely missing.<br>
<br>
It also makes texture() with a LOD bias fragment shader specific.  The<br>
main GLSL specification explicitly says that texturing with LOD bias<br>
should not be allowed for vertex shaders.<br>
<br>
Affects Piglit's ARB_texture_cube_map_array/compiler/tex_bias-01.vert.<br>
which tries to use bias in a vertex shader.  Currently, it expects this<br>
to pass (so this patch regresses the test), but I've sent a patch to<br>
reverse the expected behavior (so this patch would fix the updated test):<br>
<a href="http://lists.freedesktop.org/archives/piglit/2013-June/006123.html" target="_blank">http://lists.freedesktop.org/archives/piglit/2013-June/006123.html</a><br>
<br>
NOTE: This is a candidate for stable branches.<br>
<br>
Cc: Paul Berry <<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>><br>
Signed-off-by: Kenneth Graunke <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>><br></blockquote><div><br></div><div>Thanks for taking care of this, Ken.<br><br></div><div>Reviwed-by: Paul Berry <<a href="mailto:stereotype441@gmail.com">stereotype441@gmail.com</a>><br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
---<br>
 src/glsl/builtins/profiles/ARB_texture_cube_map_array.frag | 6 ++++++<br>
 src/glsl/builtins/profiles/ARB_texture_cube_map_array.glsl | 3 ++-<br>
 2 files changed, 8 insertions(+), 1 deletion(-)<br>
 create mode 100644 src/glsl/builtins/profiles/ARB_texture_cube_map_array.frag<br>
<br>
diff --git a/src/glsl/builtins/profiles/ARB_texture_cube_map_array.frag b/src/glsl/builtins/profiles/ARB_texture_cube_map_array.frag<br>
new file mode 100644<br>
index 0000000..0d9f4f6<br>
--- /dev/null<br>
+++ b/src/glsl/builtins/profiles/ARB_texture_cube_map_array.frag<br>
@@ -0,0 +1,6 @@<br>
+#version 130<br>
+#extension GL_ARB_texture_cube_map_array : enable<br>
+<br>
+ vec4 texture( samplerCubeArray sampler, vec4 coord, float bias);<br>
+ivec4 texture(isamplerCubeArray sampler, vec4 coord, float bias);<br>
+uvec4 texture(usamplerCubeArray sampler, vec4 coord, float bias);<br>
diff --git a/src/glsl/builtins/profiles/ARB_texture_cube_map_array.glsl b/src/glsl/builtins/profiles/ARB_texture_cube_map_array.glsl<br>
index 0f53212..73659b3 100644<br>
--- a/src/glsl/builtins/profiles/ARB_texture_cube_map_array.glsl<br>
+++ b/src/glsl/builtins/profiles/ARB_texture_cube_map_array.glsl<br>
@@ -7,7 +7,8 @@ ivec3 textureSize(usamplerCubeArray sampler, int lod);<br>
 ivec3 textureSize(samplerCubeArrayShadow sampler, int lod);<br>
<br>
  vec4 texture( samplerCubeArray sampler, vec4 coord);<br>
- vec4 texture( samplerCubeArray sampler, vec4 coord, float bias);<br>
+ivec4 texture(isamplerCubeArray sampler, vec4 coord);<br>
+uvec4 texture(usamplerCubeArray sampler, vec4 coord);<br>
 float texture( samplerCubeArrayShadow sampler, vec4 P, float compare);<br>
<br>
  vec4 textureGrad( samplerCubeArray sampler, vec4 P, vec3 dPdx, vec3 dPdy);<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.8.3.1<br>
<br>
</font></span></blockquote></div><br></div></div>