gm107/ir: disable TEXS for tex with derivAll set
fixes deqp tests:
dEQP-GLES3.functional.shaders.texture_functions.texturegrad.samplercube_fixed_vertex
dEQP-GLES3.functional.shaders.texture_functions.texturegrad.samplercube_float_vertex
dEQP-GLES3.functional.shaders.texture_functions.texturegrad.isamplercube_vertex
dEQP-GLES3.functional.shaders.texture_functions.texturegrad.usamplercube_vertex
dEQP-GLES3.functional.shaders.texture_functions.texturegrad.sampler3d_fixed_vertex
dEQP-GLES3.functional.shaders.texture_functions.texturegrad.sampler3d_float_vertex
dEQP-GLES3.functional.shaders.texture_functions.texturegrad.isampler3d_vertex
dEQP-GLES3.functional.shaders.texture_functions.texturegrad.usampler3d_vertex
dEQP-GLES3.functional.shaders.texture_functions.texturegrad.sampler2dshadow_vertex
dEQP-GLES3.functional.shaders.texture_functions.textureprojgrad.sampler3d_fixed_vertex
dEQP-GLES3.functional.shaders.texture_functions.textureprojgrad.sampler3d_float_vertex
dEQP-GLES3.functional.shaders.texture_functions.textureprojgrad.isampler3d_vertex
dEQP-GLES3.functional.shaders.texture_functions.textureprojgrad.usampler3d_vertex
dEQP-GLES3.functional.shaders.texture_functions.textureprojgrad.sampler2dshadow_vertex
Fixes: f821e80213
"gm107/ir: use scalar tex instructions where possible"
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
30b5c9eda2
commit
80dae7022e
|
@ -2863,6 +2863,7 @@ void
|
|||
CodeEmitterGM107::emitTEXS()
|
||||
{
|
||||
const TexInstruction *insn = this->insn->asTex();
|
||||
assert(!insn->tex.derivAll);
|
||||
|
||||
switch (insn->op) {
|
||||
case OP_TEX:
|
||||
|
|
|
@ -2142,7 +2142,8 @@ bool
|
|||
RegAlloc::InsertConstraintsPass::isScalarTexGM107(TexInstruction *tex)
|
||||
{
|
||||
if (tex->tex.sIndirectSrc >= 0 ||
|
||||
tex->tex.rIndirectSrc >= 0)
|
||||
tex->tex.rIndirectSrc >= 0 ||
|
||||
tex->tex.derivAll)
|
||||
return false;
|
||||
|
||||
if (tex->tex.mask == 5 || tex->tex.mask == 6)
|
||||
|
|
Loading…
Reference in New Issue