mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
nvk: Set a minimum of one patch control point
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27049>
This commit is contained in:
parent
2cab67a9f1
commit
005b5b1464
1 changed files with 4 additions and 1 deletions
|
|
@ -1030,7 +1030,10 @@ nvk_flush_ts_state(struct nvk_cmd_buffer *cmd)
|
|||
struct nv_push *p = nvk_cmd_buffer_push(cmd, 4);
|
||||
|
||||
if (BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_TS_PATCH_CONTROL_POINTS)) {
|
||||
P_IMMD(p, NV9097, SET_PATCH, dyn->ts.patch_control_points);
|
||||
/* The hardware gets grumpy if we set this to 0 so make sure we set it
|
||||
* to at least 1 in case it's dirty but uninitialized.
|
||||
*/
|
||||
P_IMMD(p, NV9097, SET_PATCH, MAX2(1, dyn->ts.patch_control_points));
|
||||
}
|
||||
|
||||
if (BITSET_TEST(dyn->dirty, MESA_VK_DYNAMIC_TS_DOMAIN_ORIGIN)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue