mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
iris: properly re-pin stencil buffers
This commit is contained in:
parent
aaced066e8
commit
f2f506fa43
1 changed files with 8 additions and 3 deletions
|
|
@ -3333,9 +3333,14 @@ iris_restore_context_saved_bos(struct iris_context *ice,
|
|||
struct pipe_framebuffer_state *cso_fb = &ice->state.framebuffer;
|
||||
|
||||
if (cso_fb->zsbuf) {
|
||||
struct iris_resource *zres = (void *) cso_fb->zsbuf->texture;
|
||||
// XXX: depth might not be writable...
|
||||
iris_use_pinned_bo(batch, zres->bo, true);
|
||||
struct iris_resource *zres, *sres;
|
||||
iris_get_depth_stencil_resources(cso_fb->zsbuf->texture,
|
||||
&zres, &sres);
|
||||
// XXX: might not be writable...
|
||||
if (zres)
|
||||
iris_use_pinned_bo(batch, zres->bo, true);
|
||||
if (sres)
|
||||
iris_use_pinned_bo(batch, sres->bo, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue