mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
i965/fs: Fix fs_inst::regs_read() for uniform pull constant loads
Previously, fs_inst::regs_read() fell back to depending on the register width for the second source. This isn't really correct since it isn't a SIMD8 value at all, but a SIMD4x2 value. This commit changes it to explicitly be always one register. v2: Use mlen for determining the number of registers read Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Acked-by: Francisco Jerez <currojerez@riseup.net>
This commit is contained in:
parent
241317d59a
commit
aca5228011
1 changed files with 6 additions and 0 deletions
|
|
@ -715,6 +715,12 @@ fs_inst::regs_read(int arg) const
|
|||
return mlen;
|
||||
break;
|
||||
|
||||
case FS_OPCODE_UNIFORM_PULL_CONSTANT_LOAD_GEN7:
|
||||
/* The payload is actually stored in src1 */
|
||||
if (arg == 1)
|
||||
return mlen;
|
||||
break;
|
||||
|
||||
case FS_OPCODE_LINTERP:
|
||||
if (arg == 0)
|
||||
return exec_size / 4;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue