mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
st/mesa: set pipe_framebuffer_state::layers for PBO blits
It only worked with drivers that ignored it. Reviewed-by: Qiang Yu <yuq825@gmail.com> Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26274>
This commit is contained in:
parent
e0a24c7fe0
commit
17c38eb9a5
2 changed files with 2 additions and 2 deletions
|
|
@ -219,7 +219,7 @@ try_pbo_readpixels(struct st_context *st, struct gl_renderbuffer *rb,
|
|||
fb.width = surface->width;
|
||||
fb.height = surface->height;
|
||||
fb.samples = 1;
|
||||
fb.layers = 1;
|
||||
fb.layers = addr.depth;
|
||||
cso_set_framebuffer(cso, &fb);
|
||||
|
||||
/* Any blend state would do. Set this just to prevent drivers having
|
||||
|
|
|
|||
|
|
@ -2014,7 +2014,7 @@ try_pbo_download(struct st_context *st,
|
|||
memset(&fb, 0, sizeof(fb));
|
||||
fb.width = texture->width0;
|
||||
fb.height = texture->height0;
|
||||
fb.layers = 1;
|
||||
fb.layers = addr.depth;
|
||||
fb.samples = 1;
|
||||
cso_set_framebuffer(cso, &fb);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue