Commit ea1e2cf
committed
encode: fixups for encode: remove the CPU
- revert dumpShaders debug flag to false
- fix pushConstantRange size to match shader layout:
Use sizeof(PushConstants) to keep the pipeline layout size in sync
with the C++ struct automatically, as done in nvpro commit c2a2fc0
("common: Optimize shader by precomputing half-resolution in push
constants").
Fixes VUID-vkCmdPushConstants-offset-01795 reported by the Vulkan
Validation Layers when running the encoder with the compute filter
enabled (SHADERC_SUPPORT).
- YcbcrUtils: add assert for unknown bpp in GetBitsPerChannel
Function added in 8f6be61 silently returns 8 for unrecognized bpp
values. Add assert to catch misuse in debug builds.1 parent 935906a commit ea1e2cf
File tree
2 files changed
+3
-2
lines changed- common
- include/nvidia_utils/vulkan
- libs/VkCodecUtils
2 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| |||
0 commit comments