mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
i965/fs: Return more accurate read size from fs_inst::size_read for IMM and UNIFORM files.
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
parent
728dd30c0a
commit
31a40202b8
1 changed files with 1 additions and 1 deletions
|
|
@ -900,7 +900,7 @@ fs_inst::size_read(int arg) const
|
|||
switch (src[arg].file) {
|
||||
case UNIFORM:
|
||||
case IMM:
|
||||
return 4;
|
||||
return components_read(arg) * type_sz(src[arg].type);
|
||||
case BAD_FILE:
|
||||
case ARF:
|
||||
case FIXED_GRF:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue