i965/gen7: Enable fragment shader dispatch if the program has image uniforms.
authorFrancisco Jerez <currojerez@riseup.net>
Tue, 3 Feb 2015 15:14:10 +0000 (17:14 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 11 Aug 2015 12:07:38 +0000 (15:07 +0300)
commitacb6d90dc809283d9839685852f19f6b301b23d3
tree7cdcc1d8fcd841a968bd52c55024d536e30c50c8
parent47f9b07e4cf79a8249c6f9f09148a6a0b4fabacc
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 <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/gen7_wm_state.c