Mesa (master): i965/fs: Make scratch write instructions use the correct execution size

Jason Ekstrand jekstrand at kemper.freedesktop.org
Mon Oct 27 20:36:29 UTC 2014


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

Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Fri Oct 24 11:42:02 2014 -0700

i965/fs: Make scratch write instructions use the correct execution size

Reviewed-by: Kristian Høgsberg <krh at bitplanet.net>

---

 src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
index c017137..2313af9 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp
@@ -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;




More information about the mesa-commit mailing list