i965/fs: Make scratch write instructions use the correct execution size
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 24 Oct 2014 18:42:02 +0000 (11:42 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 27 Oct 2014 20:35:57 +0000 (13:35 -0700)
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp

index c0171372887ea4fa31ae7ffb2411e4b7e51d376c..2313af90387aaaa9204801e2214d706df8dd9e0e 100644 (file)
@@ -732,7 +732,7 @@ fs_visitor::emit_spill(bblock_t *block, fs_inst *inst, fs_reg src,
    for (int i = 0; i < count / reg_size; i++) {
       fs_inst *spill_inst =
          new(mem_ctx) fs_inst(SHADER_OPCODE_GEN4_SCRATCH_WRITE,
-                              reg_null_f, src);
+                              reg_size * 8, reg_null_f, src);
       src.reg_offset += reg_size;
       spill_inst->offset = spill_offset + i * reg_size * REG_SIZE;
       spill_inst->ir = inst->ir;