nvk: Set base vertex state in sequential mme draw
We need to set base vertex state to zero before emitting a sequential draw call, if we have already emitted an indexed draw call that changed that state. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
committed by
Marge Bot
parent
73f5ab5456
commit
b2a52982d1
@@ -1433,6 +1433,12 @@ nvk_build_mme_draw(struct mme_builder *b, struct mme_value begin)
|
||||
struct mme_value first_vertex = mme_load(b);
|
||||
struct mme_value first_instance = mme_load(b);
|
||||
|
||||
mme_mthd(b, NV9097_SET_GLOBAL_BASE_VERTEX_INDEX);
|
||||
mme_emit(b, mme_zero());
|
||||
|
||||
mme_mthd(b, NV9097_SET_VERTEX_ID_BASE);
|
||||
mme_emit(b, mme_zero());
|
||||
|
||||
mme_mthd(b, NV9097_SET_GLOBAL_BASE_INSTANCE_INDEX);
|
||||
mme_emit(b, first_instance);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user