nvc0: disable tessellation on maxwell
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 14 Aug 2015 19:58:28 +0000 (15:58 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 14 Aug 2015 20:02:26 +0000 (16:02 -0400)
The address calculations are all different (e.g. see GP), there appear
to be sync's in programs, and probably a bunch of other differences.
Just disable it for now.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c

index c211e99c60aaeac146201ceab75138a473aaaa6e..ab19b26f15676e2b3710b9caaa47543201a7ef48 100644 (file)
@@ -232,11 +232,14 @@ nvc0_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
 
    switch (shader) {
    case PIPE_SHADER_VERTEX:
-   case PIPE_SHADER_TESS_CTRL:
-   case PIPE_SHADER_TESS_EVAL:
    case PIPE_SHADER_GEOMETRY:
    case PIPE_SHADER_FRAGMENT:
       break;
+   case PIPE_SHADER_TESS_CTRL:
+   case PIPE_SHADER_TESS_EVAL:
+      if (class_3d >= GM107_3D_CLASS)
+         return 0;
+      break;
    case PIPE_SHADER_COMPUTE:
       if (class_3d != NVE4_3D_CLASS)
          return 0;