i965/fs: Properly handle LOAD_PAYLOAD in fs_inst::regs_read

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Jason Ekstrand 2015-06-30 15:51:13 -07:00
parent 12bc22ef58
commit c5a8da5f24

View file

@ -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;