projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1de656b
)
nvk/blit: assert that formats are supported
author
Karol Herbst
<kherbst@redhat.com>
Wed, 15 Jun 2022 11:22:08 +0000
(13:22 +0200)
committer
Marge Bot
<emma+marge@anholt.net>
Fri, 4 Aug 2023 21:31:54 +0000
(21:31 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
src/nouveau/vulkan/nvk_cmd_blit.c
patch
|
blob
|
history
diff --git
a/src/nouveau/vulkan/nvk_cmd_blit.c
b/src/nouveau/vulkan/nvk_cmd_blit.c
index
df364ca
..
47b027d
100644
(file)
--- a/
src/nouveau/vulkan/nvk_cmd_blit.c
+++ b/
src/nouveau/vulkan/nvk_cmd_blit.c
@@
-23,6
+23,9
@@
nvk_CmdBlitImage2(
VK_FROM_HANDLE(nvk_image, dst, pBlitImageInfo->dstImage);
struct nouveau_ws_push *push = cmd->push;
+ assert(src->format->supports_2d_blit);
+ assert(dst->format->supports_2d_blit);
+
nouveau_ws_push_ref(push, src->mem->bo, NOUVEAU_WS_BO_RD);
nouveau_ws_push_ref(push, dst->mem->bo, NOUVEAU_WS_BO_WR);