nvc0: fix setting of subpixel precision during conservative rasterization
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 11 May 2018 12:03:28 +0000 (13:03 +0100)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 13 May 2018 17:21:41 +0000 (13:21 -0400)
Fixes: 07dac3e040 ("nvc0: add conservative rasterization support")
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/mme/com9097.mme
src/gallium/drivers/nouveau/nvc0/mme/com9097.mme.h

index ecf99606672b5faa6e26d9d973b0c3d097090640..38c2e8684318de54a81959ed8f2dd76eabf674af 100644 (file)
@@ -569,7 +569,7 @@ qbw_done:
    mov $r2 0x831
    send (extrinsrt 0x0 $r2 0 12 11) /* sends 0x418800 */
    /* Subpixel precision */
-   mov $r2 (extrinsrt 0x0 $r1 0 3 0)
+   mov $r2 (extrinsrt 0x0 $r1 0 4 0)
    mov $r2 (extrinsrt $r2 $r1 4 4 8)
    maddr 0x8287 /* SUBPIXEL_PRECISION[0] (incrementing by 8 methods) */
    mov $r3 16 /* loop counter */
index 3eacda9a27a198d71e831a08dca3eef1ec128ed6..49c08911142e94a84174eefe4d290ece73569803 100644 (file)
@@ -384,7 +384,7 @@ uint32_t mme9097_conservative_raster_state[] = {
        0x06310021,
        0x020c4211,
        0x5b008042,
-       0x00c04212,
+       0x01004212,
        0x41085212,
        0x20a1c021,
        0x00040311,