projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a36f154
)
iris: Make resource_copy_region handle packed depth-stencil resources.
author
Kenneth Graunke
<kenneth@whitecape.org>
Mon, 17 Jun 2019 21:35:31 +0000
(16:35 -0500)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Mon, 17 Jun 2019 22:29:09 +0000
(17:29 -0500)
Also copy along the separate stencil buffer if needed.
Fixes Piglit's arb_copy_image-formats.
src/gallium/drivers/iris/iris_blit.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/iris/iris_blit.c
b/src/gallium/drivers/iris/iris_blit.c
index 95209cb408f17d77424832aba30f301996224a7d..6f57dc8ab4cadc462fd03abce460b81318112df4 100644
(file)
--- a/
src/gallium/drivers/iris/iris_blit.c
+++ b/
src/gallium/drivers/iris/iris_blit.c
@@
-626,6
+626,16
@@
iris_resource_copy_region(struct pipe_context *ctx,
iris_copy_region(&ice->blorp, batch, dst, dst_level, dstx, dsty, dstz,
src, src_level, src_box);
iris_copy_region(&ice->blorp, batch, dst, dst_level, dstx, dsty, dstz,
src, src_level, src_box);
+
+ if (util_format_is_depth_and_stencil(dst->format) &&
+ util_format_has_stencil(util_format_description(src->format))) {
+ struct iris_resource *junk, *s_src_res, *s_dst_res;
+ iris_get_depth_stencil_resources(src, &junk, &s_src_res);
+ iris_get_depth_stencil_resources(dst, &junk, &s_dst_res);
+
+ iris_copy_region(&ice->blorp, batch, &s_dst_res->base, dst_level, dstx,
+ dsty, dstz, &s_src_res->base, src_level, src_box);
+ }
}
void
}
void