mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
i965/fs: fix dst width calculation in CSE
v2 (Sam): - Fix line width (Topi). Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
fccd15524f
commit
2286a74e3b
1 changed files with 2 additions and 1 deletions
|
|
@ -187,7 +187,8 @@ static void
|
|||
create_copy_instr(const fs_builder &bld, fs_inst *inst, fs_reg src, bool negate)
|
||||
{
|
||||
int written = inst->regs_written;
|
||||
int dst_width = inst->exec_size / 8;
|
||||
int dst_width =
|
||||
DIV_ROUND_UP(inst->dst.component_size(inst->exec_size), REG_SIZE);
|
||||
fs_inst *copy;
|
||||
|
||||
if (written > dst_width) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue