mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-31 20:00:24 +01:00
nv50/ir: do not call textureMask() for surface ops
That texture mask thing doesn't seem to be needed for surface ops, so just as nve4+, let do that only for texture ops. This fixes a segfault with 'test_surface_st' from gallium/tests/trivial/compute.c on Fermi because this test uses sustp. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
9e6af56666
commit
c672bf3b04
1 changed files with 2 additions and 1 deletions
|
|
@ -2084,7 +2084,8 @@ RegAlloc::InsertConstraintsPass::texConstraintNVC0(TexInstruction *tex)
|
|||
{
|
||||
int n, s;
|
||||
|
||||
textureMask(tex);
|
||||
if (isTextureOp(tex->op))
|
||||
textureMask(tex);
|
||||
|
||||
if (tex->op == OP_TXQ) {
|
||||
s = tex->srcCount(0xff);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue