Mesa (master): r600: fix color export mask
Roland Scheidegger
sroland at kemper.freedesktop.org
Mon Mar 5 19:15:38 UTC 2018
Module: Mesa
Branch: master
Commit: 434523cf2a6738b0250de2a0e36e93b13f88832a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=434523cf2a6738b0250de2a0e36e93b13f88832a
Author: Roland Scheidegger <sroland at vmware.com>
Date: Mon Mar 5 20:12:32 2018 +0100
r600: fix color export mask
The r600 code (not the eg one) forgot to copy the ps_color_export_mask
in commit 5b14e06d8b42e2b08ebc52b6c314ef8647d87a1f when updating the
pixel state, leading to misrenderings (probably with MRT).
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105262
Tested-by: LoneVVolf <lonewolf at xs4all.nl>
Tested-by: Pavel Vinogradov <public at sourcemage.org>
---
src/gallium/drivers/r600/r600_state.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c
index 7f6da1a3ed..923817119f 100644
--- a/src/gallium/drivers/r600/r600_state.c
+++ b/src/gallium/drivers/r600/r600_state.c
@@ -2525,6 +2525,7 @@ void r600_update_ps_state(struct pipe_context *ctx, struct r600_pipe_shader *sha
}
shader->nr_ps_color_outputs = num_cout;
+ shader->ps_color_export_mask = rshader->ps_color_export_mask;
spi_ps_in_control_0 = S_0286CC_NUM_INTERP(rshader->ninput) |
S_0286CC_PERSP_GRADIENT_ENA(1)|
More information about the mesa-commit
mailing list