mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
nv50/ir: fix tex constraints for surface coords on Fermi
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
be4caaf247
commit
8aa1fd321d
1 changed files with 6 additions and 0 deletions
|
|
@ -2152,6 +2152,12 @@ RegAlloc::InsertConstraintsPass::texConstraintNVC0(TexInstruction *tex)
|
|||
if (tex->op == OP_TXQ) {
|
||||
s = tex->srcCount(0xff);
|
||||
n = 0;
|
||||
} else if (isSurfaceOp(tex->op)) {
|
||||
s = tex->tex.target.getDim() + (tex->tex.target.isArray() || tex->tex.target.isCube());
|
||||
if (tex->op == OP_SUSTB || tex->op == OP_SUSTP)
|
||||
n = 4;
|
||||
else
|
||||
n = 0;
|
||||
} else {
|
||||
s = tex->tex.target.getArgCount() - tex->tex.target.isMS();
|
||||
if (!tex->tex.target.isArray() &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue