summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-11-29 20:49:24 +0100
committerMarek Olšák <[email protected]>2016-12-01 02:16:51 +0100
commitda7453666aecd49e277a291c17dc7ef602643055 (patch)
treea70e78153a1c601dcfd2d0f9aa044f8ab60c0f6b
parent78c4528ae7709fbe94d917d034cfd60535b5dcf3 (diff)
radeonsi: don't apply the Z export bug workaround to Hainan
not needed Reviewed-by: Nicolai Hähnle <[email protected]>
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index ee2fce16b75..44a4dd271b8 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -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 */