diff options
author | Francisco Jerez <[email protected]> | 2015-02-03 17:14:10 +0200 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2015-08-11 15:07:38 +0300 |
commit | acb6d90dc809283d9839685852f19f6b301b23d3 (patch) | |
tree | 7cdcc1d8fcd841a968bd52c55024d536e30c50c8 /src/mesa | |
parent | 47f9b07e4cf79a8249c6f9f09148a6a0b4fabacc (diff) |
i965/gen7: Enable fragment shader dispatch if the program has image uniforms.
Shaders with image uniforms may have side effects. Make sure that
fragment shader threads are dispatched if the shader has any image
uniforms.
v2: Use brw_stage_prog_data::nr_image_params to find out if the shader
has image uniforms instead of checking core mesa data structures
(Ken).
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen7_wm_state.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/gen7_wm_state.c b/src/mesa/drivers/dri/i965/gen7_wm_state.c index d7be58dd0f7..aa47421844e 100644 --- a/src/mesa/drivers/dri/i965/gen7_wm_state.c +++ b/src/mesa/drivers/dri/i965/gen7_wm_state.c @@ -83,6 +83,7 @@ upload_wm_state(struct brw_context *brw) /* _NEW_BUFFERS | _NEW_COLOR */ if (brw_color_buffer_write_enabled(brw) || writes_depth || + prog_data->base.nr_image_params || dw1 & GEN7_WM_KILL_ENABLE) { dw1 |= GEN7_WM_DISPATCH_ENABLE; } |