Module: Mesa
Branch: master
Commit: 6eb0d3d86394699f0e3eb3df26a9623bb142e6a8
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=6eb0d3d86394699f0e3eb3df26a9623bb142e6a8

Author: Michel Dänzer <[email protected]>
Date:   Fri Nov 30 11:38:24 2012 +0100

radeonsi: Pass texture type to sampling intrinsics.

Signed-off-by: Michel Dänzer <[email protected]>

---

 src/gallium/drivers/radeonsi/radeonsi_shader.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.c 
b/src/gallium/drivers/radeonsi/radeonsi_shader.c
index 5dab46e..4843330 100644
--- a/src/gallium/drivers/radeonsi/radeonsi_shader.c
+++ b/src/gallium/drivers/radeonsi/radeonsi_shader.c
@@ -845,12 +845,10 @@ static void tex_fetch_args(
                                                ptr, offset);
 
        /* Dimensions */
-       /* XXX: We might want to pass this information to the shader at some. */
-/*     emit_data->args[4] = lp_build_const_int32(bld_base->base.gallivm,
+       emit_data->args[4] = lp_build_const_int32(bld_base->base.gallivm,
                                        emit_data->inst->Texture.Texture);
-*/
 
-       emit_data->arg_count = 4;
+       emit_data->arg_count = 5;
        /* XXX: To optimize, we could use a float or v2f32, if the last bits of
         * the writemask are clear */
        emit_data->dst_type = LLVMVectorType(

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to