i965/gen4: Fix sampling from integer textures.
[mesa.git] / src / mesa / drivers / dri / i965 / brw_wm_emit.c
index a451d56e498fa4e546190438fac768afba55e1ff..b5a4a4f34daba085670fb66aad88e3a592559a16 100644 (file)
@@ -1162,7 +1162,8 @@ void emit_tex(struct brw_wm_compile *c,
              response_length,
              cur_mrf - 1,
              1,
-             simd_mode);
+             simd_mode,
+             BRW_SAMPLER_RETURN_FORMAT_FLOAT32);
 }
 
 
@@ -1240,7 +1241,8 @@ void emit_txb(struct brw_wm_compile *c,
              response_length,
              msgLength,
              1,
-             BRW_SAMPLER_SIMD_MODE_SIMD16);    
+             BRW_SAMPLER_SIMD_MODE_SIMD16,
+             BRW_SAMPLER_RETURN_FORMAT_FLOAT32);
 }