diff options
author | Kenneth Graunke <[email protected]> | 2019-01-31 16:54:43 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-04 11:17:56 -0800 |
commit | dc46317d1ab1805feacd94297bd9e57b6881c4d3 (patch) | |
tree | 59df7daf309afb19ea0e6323c99176f7c840c1f9 /src/mesa | |
parent | 56c3b4971d44748ad8618efdf8833ec2f9af4078 (diff) |
st/mesa: Set pipe_image_view::shader_access in PBO readpixels.
Commit 8b626a22b24089edf90cb1b06e5b1895bb36c61b introduced a new
pipe_image_view::shader_access field, indicating the access mode
specified in the shader. st/mesa's built-in PBO download shader
creates a write-only image buffer, so we should flag it as such.
Nobody uses this field yet (Iris will), so we don't need to backport
this fix to stable branches.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_cb_readpixels.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_readpixels.c b/src/mesa/state_tracker/st_cb_readpixels.c index 3e008904eff..f614849b956 100644 --- a/src/mesa/state_tracker/st_cb_readpixels.c +++ b/src/mesa/state_tracker/st_cb_readpixels.c @@ -199,6 +199,7 @@ try_pbo_readpixels(struct st_context *st, struct st_renderbuffer *strb, image.resource = addr.buffer; image.format = dst_format; image.access = PIPE_IMAGE_ACCESS_WRITE; + image.shader_access = PIPE_IMAGE_ACCESS_WRITE; image.u.buf.offset = addr.first_element * addr.bytes_per_pixel; image.u.buf.size = (addr.last_element - addr.first_element + 1) * addr.bytes_per_pixel; |