nvk: Always set SET_ATTRIBUTE_POINT_SIZE

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28217>
This commit is contained in:
Faith Ekstrand
2024-03-15 12:01:51 -05:00
committed by Marge Bot
parent 446f652cde
commit 3bed7b22fe
+2 -6
View File
@@ -305,6 +305,7 @@ nvk_push_draw_state_init(struct nvk_device *dev, struct nv_push *p)
});
P_IMMD(p, NV9097, SET_POINT_SIZE, fui(1.0));
P_IMMD(p, NV9097, SET_ATTRIBUTE_POINT_SIZE, { .enable = ENABLE_TRUE });
/* From vulkan spec's point rasterization:
* "Point rasterization produces a fragment for each fragment area group of
@@ -1196,7 +1197,7 @@ nvk_flush_shaders(struct nvk_cmd_buffer *cmd)
last_vtgm = cmd->state.gfx.shaders[stage];
}
struct nv_push *p = nvk_cmd_buffer_push(cmd, 8);
struct nv_push *p = nvk_cmd_buffer_push(cmd, 6);
P_IMMD(p, NV9097, SET_RT_LAYER, {
.v = 0,
@@ -1205,11 +1206,6 @@ nvk_flush_shaders(struct nvk_cmd_buffer *cmd)
CONTROL_V_SELECTS_LAYER,
});
P_IMMD(p, NV9097, SET_ATTRIBUTE_POINT_SIZE, {
.enable = last_vtgm->info.vtg.writes_point_size,
.slot = 0,
});
const uint8_t clip_enable = last_vtgm->info.vtg.clip_enable;
const uint8_t cull_enable = last_vtgm->info.vtg.cull_enable;
P_IMMD(p, NV9097, SET_USER_CLIP_ENABLE, {