mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
intel/fs: Generalize fs_reg::is_contiguous() to register files other than VGRF.
No functional nor shader-db changes. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
d9a57c85cc
commit
1873202f44
1 changed files with 16 additions and 1 deletions
|
|
@ -564,7 +564,22 @@ fs_reg::negative_equals(const fs_reg &r) const
|
|||
bool
|
||||
fs_reg::is_contiguous() const
|
||||
{
|
||||
return stride == 1;
|
||||
switch (file) {
|
||||
case ARF:
|
||||
case FIXED_GRF:
|
||||
return hstride == BRW_HORIZONTAL_STRIDE_1 &&
|
||||
vstride == width + hstride;
|
||||
case MRF:
|
||||
case VGRF:
|
||||
case ATTR:
|
||||
return stride == 1;
|
||||
case UNIFORM:
|
||||
case IMM:
|
||||
case BAD_FILE:
|
||||
return true;
|
||||
}
|
||||
|
||||
unreachable("Invalid register file");
|
||||
}
|
||||
|
||||
unsigned
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue