<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Sep 8, 2016 at 12:53 PM, Rob Clark <span dir="ltr"><<a href="mailto:robdclark@gmail.com" target="_blank">robdclark@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Numeric 2 is actually GLSL_SAMPLER_DIM_3D, which I don't think is what<br>
was intended.<br>
<br>
Signed-off-by: Rob Clark <<a href="mailto:robdclark@gmail.com">robdclark@gmail.com</a>><br>
---<br>
 src/compiler/nir/nir_lower_<wbr>tex.c | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/compiler/nir/nir_lower_<wbr>tex.c b/src/compiler/nir/nir_lower_<wbr>tex.c<br>
index a405758..0efd443 100644<br>
--- a/src/compiler/nir/nir_lower_<wbr>tex.c<br>
+++ b/src/compiler/nir/nir_lower_<wbr>tex.c<br>
@@ -211,7 +211,7 @@ sample_plane(nir_builder *b, nir_tex_instr *tex, int plane)<br>
    plane_tex->src[1].src = nir_src_for_ssa(nir_imm_int(b, plane));<br>
    plane_tex->src[1].src_type = nir_tex_src_plane;<br>
    plane_tex->op = nir_texop_tex;<br>
-   plane_tex->sampler_dim = 2;<br>
+   plane_tex->sampler_dim = GLSL_SAMPLER_DIM_2D;<br></blockquote><div><br></div><div>Ugh... 2 doesn't even map to 2D. :(<br><br></div><div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
    plane_tex->dest_type = nir_type_float;<br>
    plane_tex->coord_components = 2;<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.7.4<br>
<br>
</font></span></blockquote></div><br></div></div>