glsl_to_tgsi: plumb image writable through to driver
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 6 Aug 2018 16:59:06 +0000 (18:59 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 8 Aug 2018 07:35:09 +0000 (09:35 +0200)
commit0f450e0cbe65e09127e983e53a6c70a1ad86ba77
tree2262e467bb1222e2dafd444e6da0f0f9ce9b4e14
parentcfe69d0aaafadaaaca98517bc33307fba68197ba
glsl_to_tgsi: plumb image writable through to driver

The virgl driver cares about the writable-flag on image definitions,
because it re-emits GLSL from the TGSI. However, so far it was hardcoded
to true in glsl_to_tgsi, which cause problems when virglrenderer is
running on top of GLES 3.1, where not all formats are supported for
writable images.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
src/mesa/state_tracker/st_glsl_to_tgsi_private.h