nvc0: we have 16k-sized framebuffers, fix default scissors
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 10 Feb 2019 03:36:49 +0000 (22:36 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 11 Feb 2019 04:36:23 +0000 (23:36 -0500)
For some reason we don't use view volume clipping by default, and use
scissors instead. These scissors were set to an 8k max fb size, while
the driver advertises 16k-sized framebuffers.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c

index 6421105e3cf8f50258a1da4d129c7d2c827bec24..d08d15cb9dbb4fe66db8b2f9d76a682f7c13d542 100644 (file)
@@ -1284,8 +1284,8 @@ nvc0_screen_create(struct nouveau_device *dev)
    for (i = 0; i < NVC0_MAX_VIEWPORTS; i++) {
       BEGIN_NVC0(push, NVC0_3D(SCISSOR_ENABLE(i)), 3);
       PUSH_DATA (push, 1);
-      PUSH_DATA (push, 8192 << 16);
-      PUSH_DATA (push, 8192 << 16);
+      PUSH_DATA (push, 16384 << 16);
+      PUSH_DATA (push, 16384 << 16);
    }
 
 #define MK_MACRO(m, n) i = nvc0_graph_set_macro(screen, m, i, sizeof(n), n);