diff options
author | Matt Turner <[email protected]> | 2014-05-27 15:26:06 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-05-29 10:42:25 -0700 |
commit | dfd117b8570a69a429e660c069997e78b181ab6d (patch) | |
tree | 78b38e1e5c41f0aa2bfbfb4c877daef3f76c4816 /src | |
parent | e3cc0d90e14e62a0a787b6c07a6df0f5c84039be (diff) |
i965/fs: Set correct number of regs_written for MCS fetches.
regs_written is in units of virtual GRFs.
Reviewed-by: Chris Forbes <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp index be6b8acecef..04b9f21b84f 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp @@ -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; |