From 66ed9792edb702c18eeb4d23a7b792e32b3188d4 Mon Sep 17 00:00:00 2001 From: mmenzyns Date: Tue, 30 Jun 2020 15:57:49 +0200 Subject: nv50: Clear nv50_ir_prog_info of dead and codegen specific variables These variables are either not used in the code, only assigned but never accessed, or only used inside codegen. Another reason is that this patch will be preceding shader cache, and these variables are useless to cache. Removing/moving them should make it clearer by removing the case something from the structure is not cached. Shader cache patch: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4264 Signed-off-by: Mark Menzynski Reviewed-by: Karol Herbst Part-of: --- src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp') diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp index 067f9abaca8..1bcfb054ffa 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp @@ -2965,7 +2965,7 @@ NVC0LoweringPass::handleRDSV(Instruction *i) bld.mkOp2v(OP_AND, TYPE_U32, bld.getSSA(), ld->getDef(0), bld.mkOp2v(OP_SHL, TYPE_U32, bld.getSSA(), bld.loadImm(NULL, 1), sampleid->getDef(0))); - if (prog->driver->prop.fp.persampleInvocation) { + if (prog->persampleInvocation) { bld.mkMov(i->getDef(0), masked); } else { bld.mkOp3(OP_SELP, TYPE_U32, i->getDef(0), ld->getDef(0), masked, -- cgit v1.2.3