mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
nvc0/ir: allow 64-bit constant loads on nve4
Looks like only 128-bit access doesn't work.
This commit is contained in:
parent
40c224a573
commit
79eed0d224
2 changed files with 3 additions and 1 deletions
|
|
@ -1939,6 +1939,8 @@ FlatteningPass::visit(BasicBlock *bb)
|
|||
!isTextureOp(insn->op) && // probably just nve4
|
||||
insn->op != OP_LINTERP && // probably just nve4
|
||||
insn->op != OP_PINTERP && // probably just nve4
|
||||
((insn->op != OP_LOAD && insn->op != OP_STORE) ||
|
||||
typeSizeof(insn->dType) <= 4) &&
|
||||
!insn->isNop()) {
|
||||
insn->join = 1;
|
||||
bb->remove(bb->getExit());
|
||||
|
|
|
|||
|
|
@ -448,7 +448,7 @@ TargetNVC0::isAccessSupported(DataFile file, DataType ty) const
|
|||
if (ty == TYPE_NONE)
|
||||
return false;
|
||||
if (file == FILE_MEMORY_CONST && getChipset() >= 0xe0) // wrong encoding ?
|
||||
return typeSizeof(ty) <= 4;
|
||||
return typeSizeof(ty) <= 8;
|
||||
if (ty == TYPE_B96)
|
||||
return (file == FILE_SHADER_INPUT) || (file == FILE_SHADER_OUTPUT);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue