Skip to contentSkip to conversation

Kill some nvc0 defines from nv50_ir_target_nv50.h

PATCH Andrew Randrianasulu 1 participant 1 message Oct 21, 2020

lore
Share & tools
lore
#0 lore raw

Well, as Illia Mirkin suggested I killed few lines of code :}

Driver seems to compile fine afterwards, and run glxgeras :} and clpeak too (but with external nv50 compute patches from Pierre Moreau)

From 528143b24875e8053edfb95cfc97fe0ac7fa9ebb Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <[email protected]>
Date: Wed, 21 Oct 2020 21:14:24 +0300
Subject: [PATCH] Nuke NVC0 defines from nouveau/codegen/nv50_ir_target_nv50.h
(they are in nouveau/codegen/nv50_ir_target_nvc0.h)

---
 src/gallium/drivers/nouveau/codegen/nv50_ir_target_nv50.h | 6 ------
 1 file changed, 6 deletions(-)
src/gallium/drivers/nouveau/codegen/nv50_ir_target_nv50.h +0 -6
index caf66b269db..604a35890b7 100644
@@ -24,12 +24,6 @@
 
 namespace nv50_ir {
 
-#define NVC0_BUILTIN_DIV_U32 0
-#define NVC0_BUILTIN_DIV_S32 1
-#define NVC0_BUILTIN_RCP_F64 2
-#define NVC0_BUILTIN_RSQ_F64 3
-
-#define NVC0_BUILTIN_COUNT 4
 
 class TargetNV50 : public Target
 {

--
2.14.5

From 528143b24875e8053edfb95cfc97fe0ac7fa9ebb Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <[email protected]>
Date: Wed, 21 Oct 2020 21:14:24 +0300
Subject: [PATCH] Nuke NVC0 defines from nouveau/codegen/nv50_ir_target_nv50.h
(they are in nouveau/codegen/nv50_ir_target_nvc0.h)

---
 src/gallium/drivers/nouveau/codegen/nv50_ir_target_nv50.h | 6 ------
 1 file changed, 6 deletions(-)
src/gallium/drivers/nouveau/codegen/nv50_ir_target_nv50.h +0 -6
index caf66b269db..604a35890b7 100644
@@ -24,12 +24,6 @@
 
 namespace nv50_ir {
 
-#define NVC0_BUILTIN_DIV_U32 0
-#define NVC0_BUILTIN_DIV_S32 1
-#define NVC0_BUILTIN_RCP_F64 2
-#define NVC0_BUILTIN_RSQ_F64 3
-
-#define NVC0_BUILTIN_COUNT 4
 
 class TargetNV50 : public Target
 {
Signature · 1 line
2.14.5

_______________________________________________
Nouveau mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau