mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 04:10:09 +01:00
i965/fs: Properly handle LOAD_PAYLOAD in fs_inst::regs_read
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
12bc22ef58
commit
c5a8da5f24
1 changed files with 5 additions and 0 deletions
|
|
@ -733,6 +733,11 @@ fs_inst::regs_read(int arg) const
|
|||
components = 1;
|
||||
break;
|
||||
|
||||
case SHADER_OPCODE_LOAD_PAYLOAD:
|
||||
if (arg < this->header_size)
|
||||
return 1;
|
||||
break;
|
||||
|
||||
default:
|
||||
if (is_tex() && arg == 0 && src[0].file == GRF)
|
||||
return mlen;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue