mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
i965/fs: Add support for doing MOV_INDIRECT on uniforms
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
a8975a91cc
commit
40a8fe04dc
1 changed files with 4 additions and 1 deletions
|
|
@ -853,7 +853,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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue