mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 11:00:11 +01:00
iris: properly pin stencil buffers
This commit is contained in:
parent
8545e39808
commit
25a41b1aef
1 changed files with 8 additions and 3 deletions
|
|
@ -4277,9 +4277,14 @@ iris_upload_dirty_render_state(struct iris_context *ice,
|
|||
iris_batch_emit(batch, cso_z->packets, sizeof(cso_z->packets));
|
||||
|
||||
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