Permalink
Browse files

nvc0: switch to kepler's subchannel assignments (see note)

This will bust for kernels with nouveau ABI version < 1.0.0... It should
be possible to add compat for 0.0.16 however...

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information...
1 parent d799138 commit 43ee00bdfda3f3a5b8b99bd2871f443912044a18 @skeggsb committed Mar 29, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/nvc0_accel.h
View
@@ -9,15 +9,15 @@
#include "hwdefs/nv50_texture.h"
#include "hwdefs/nv_3ddefs.xml.h"
-/* subchannel assignments */
-#define SUBC_M2MF(mthd) 0, (mthd)
+/* subchannel assignments, compatible with kepler's fixed layout */
+#define SUBC_3D(mthd) 0, (mthd)
+#define NVC0_3D(mthd) SUBC_3D(NVC0_3D_##mthd)
+#define SUBC_M2MF(mthd) 2, (mthd)
#define NVC0_M2MF(mthd) SUBC_M2MF(NVC0_M2MF_##mthd)
-#define SUBC_NVSW(mthd) 1, (mthd)
-#define SUBC_2D(mthd) 2, (mthd)
+#define SUBC_2D(mthd) 3, (mthd)
#define NV50_2D(mthd) SUBC_2D(NV50_2D_##mthd)
#define NVC0_2D(mthd) SUBC_2D(NVC0_2D_##mthd)
-#define SUBC_3D(mthd) 7, (mthd)
-#define NVC0_3D(mthd) SUBC_3D(NVC0_3D_##mthd)
+#define SUBC_NVSW(mthd) 5, (mthd)
/* scratch buffer offsets */
#define CODE_OFFSET 0x00000 /* Code */

0 comments on commit 43ee00b

Please sign in to comment.