nv/codegen: Remove fragCoord variable.

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24791>
This commit is contained in:
M Henning
2023-08-19 11:51:53 -04:00
parent 2ef8af39d8
commit b80897fab1
2 changed files with 2 additions and 3 deletions

View File

@@ -34,7 +34,6 @@ protected:
struct nv50_ir_prog_info *info;
struct nv50_ir_prog_info_out *info_out;
Value *fragCoord[4];
Value *outBase; // base address of vertex out patch (for TCP)
};

View File

@@ -1355,8 +1355,8 @@ Converter::visit(nir_function *function)
break;
case Program::TYPE_FRAGMENT: {
Symbol *sv = mkSysVal(SV_POSITION, 3);
fragCoord[3] = mkOp1v(OP_RDSV, TYPE_F32, getSSA(), sv);
fp.position = mkOp1v(OP_RCP, TYPE_F32, fragCoord[3], fragCoord[3]);
Value *temp = mkOp1v(OP_RDSV, TYPE_F32, getSSA(), sv);
fp.position = mkOp1v(OP_RCP, TYPE_F32, temp, temp);
break;
}
default: