diff options
author | Francisco Jerez <currojerez@riseup.net> | 2016-02-11 20:17:15 -0800 |
---|---|---|
committer | Francisco Jerez <currojerez@riseup.net> | 2016-02-13 14:33:32 -0800 |
commit | 9e30d66b7c9e7428ad15b6274694a7a1ceee68ae (patch) | |
tree | 29e1c41dcfc3c4348f75902e6b88c21048f2e476 /src/mesa/drivers/dri/i965/brw_wm_surface_state.c | |
parent | 40fcb6b9f95050370af0fef11abd12e16b8cc7d0 (diff) | |
download | external_mesa3d-9e30d66b7c9e7428ad15b6274694a7a1ceee68ae.zip external_mesa3d-9e30d66b7c9e7428ad15b6274694a7a1ceee68ae.tar.gz external_mesa3d-9e30d66b7c9e7428ad15b6274694a7a1ceee68ae.tar.bz2 |
i965: Reupload push and pull constants when we get new shader image unit state.
Fixes several of the
"dEQP-GLES31.functional.image_load_store*load_store*single_layer" dEQP
tests that use image formats we implement using untyped surface
messages.
Cc: mesa-stable@lists.freedesktop.org
Tested-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm_surface_state.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c index 708be0e..f1b8fc4 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c @@ -1364,6 +1364,11 @@ brw_upload_image_surfaces(struct brw_context *brw, } brw->ctx.NewDriverState |= BRW_NEW_SURFACES; + /* This may have changed the image metadata dependent on the context + * image unit state and passed to the program as uniforms, make sure + * that push and pull constants are reuploaded. + */ + brw->NewGLState |= _NEW_PROGRAM_CONSTANTS; } } |