i965/fs: Add support for doing MOV_INDIRECT on uniforms

This commit is contained in:
Jason Ekstrand
2015-11-23 18:32:38 -08:00
parent 96dc732ed8
commit 2c90f08bf7
+4 -1
View File
@@ -850,7 +850,10 @@ fs_inst::regs_read(int arg) const
assert(src[2].file == IMM);
unsigned region_length = src[2].ud;
if (src[0].file == FIXED_GRF) {
if (src[0].file == UNIFORM) {
assert(region_length % 4 == 0);
return region_length / 4;
} else if (src[0].file == FIXED_GRF) {
/* If the start of the region is not register aligned, then
* there's some portion of the register that's technically
* unread at the beginning.