radeonsi: don't apply the Z export bug workaround to Hainan
authorMarek Olšák <marek.olsak@amd.com>
Tue, 29 Nov 2016 19:49:24 +0000 (20:49 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 1 Dec 2016 01:16:51 +0000 (02:16 +0100)
not needed

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_shader.c

index ee2fce16b756aeb8e4da1b55d78ac29ed0a049fb..44a4dd271b87674affb00b835de6aa43c2959be6 100644 (file)
@@ -2898,10 +2898,11 @@ static void si_export_mrt_z(struct lp_build_tgsi_context *bld_base,
                }
        }
 
-       /* SI (except OLAND) has a bug that it only looks
+       /* SI (except OLAND and HAINAN) has a bug that it only looks
         * at the X writemask component. */
        if (ctx->screen->b.chip_class == SI &&
-           ctx->screen->b.family != CHIP_OLAND)
+           ctx->screen->b.family != CHIP_OLAND &&
+           ctx->screen->b.family != CHIP_HAINAN)
                mask |= 0x1;
 
        /* Specify which components to enable */