i965/fs: Set correct number of regs_written for MCS fetches.
authorMatt Turner <mattst88@gmail.com>
Tue, 27 May 2014 22:26:06 +0000 (15:26 -0700)
committerMatt Turner <mattst88@gmail.com>
Thu, 29 May 2014 17:42:25 +0000 (10:42 -0700)
regs_written is in units of virtual GRFs.

Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp

index be6b8acecefdf3aea8997f2347ef6fb4bf164659..04b9f21b84fe56da86af83d9edeb27a51e0cef3a 100644 (file)
@@ -1591,9 +1591,9 @@ fs_visitor::emit_mcs_fetch(ir_texture *ir, fs_reg coordinate, int sampler)
    inst->base_mrf = -1;
    inst->mlen = next.reg_offset * reg_width;
    inst->header_present = false;
-   inst->regs_written = 4 * reg_width; /* we only care about one reg of response,
-                                        * but the sampler always writes 4/8
-                                        */
+   inst->regs_written = 4; /* we only care about one reg of response,
+                            * but the sampler always writes 4/8
+                            */
    inst->sampler = sampler;
 
    return dest;