mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 15:58:05 +02:00
nvk: Remove old comments from draw state init
Those were relevent for Fermi or just the Gallium driver. For the vertex runout, it is implemented a bit after (SET_VERTEX_STREAM_SUBSTITUTE_A) I also rewrote the comment about CSAA_ENABLE as it is still relevent. Signed-off-by: Mary Guillemard <mary@mary.zone> Reviewed-by: Mel Henning <mhenning@darkrefraction.com> Tested-by: Thomas H.P. Andersen <phomes@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40753>
This commit is contained in:
parent
091db8a827
commit
b2e55f5a1a
1 changed files with 4 additions and 13 deletions
|
|
@ -270,8 +270,10 @@ nvk_push_draw_state_init(struct nvk_queue *queue, struct nv_push *p)
|
|||
|
||||
P_IMMD(p, NV9097, SET_CT_SELECT, { .target_count = 1 });
|
||||
|
||||
// P_MTHD(cmd->push, NVC0_3D, CSAA_ENABLE);
|
||||
// P_INLINE_DATA(cmd->push, 0);
|
||||
/* TODO: The proprietary driver set method 0x15b4 to 0
|
||||
* and the golden ctx set it to 1 so we should probably unset it.
|
||||
* On the Gallium driver, the unofficial name of this is CSAA_ENABLE.
|
||||
*/
|
||||
|
||||
P_IMMD(p, NV9097, SET_ALIASED_LINE_WIDTH_ENABLE, V_TRUE);
|
||||
|
||||
|
|
@ -469,8 +471,6 @@ nvk_push_draw_state_init(struct nvk_queue *queue, struct nv_push *p)
|
|||
BY_VIEWPORT_INDEX_FALSE);
|
||||
}
|
||||
|
||||
/* TODO: Vertex runout */
|
||||
|
||||
P_IMMD(p, NV9097, SET_WINDOW_ORIGIN, {
|
||||
.mode = MODE_UPPER_LEFT,
|
||||
.flip_y = FLIP_Y_FALSE,
|
||||
|
|
@ -493,11 +493,6 @@ nvk_push_draw_state_init(struct nvk_queue *queue, struct nv_push *p)
|
|||
P_INLINE_DATA(p, 1);
|
||||
P_IMMD(p, NV9097, SET_CLIP_ID_TEST, ENABLE_FALSE);
|
||||
|
||||
// P_IMMD(p, NV9097, X_X_X_SET_CLEAR_CONTROL, {
|
||||
// .respect_stencil_mask = RESPECT_STENCIL_MASK_FALSE,
|
||||
// .use_clear_rect = USE_CLEAR_RECT_FALSE,
|
||||
// });
|
||||
|
||||
P_IMMD(p, NV9097, SET_VIEWPORT_SCALE_OFFSET, ENABLE_TRUE);
|
||||
|
||||
P_IMMD(p, NV9097, SET_VIEWPORT_CLIP_CONTROL, {
|
||||
|
|
@ -565,14 +560,10 @@ nvk_push_draw_state_init(struct nvk_queue *queue, struct nv_push *p)
|
|||
}
|
||||
}
|
||||
|
||||
// P_MTHD(cmd->push, NVC0_3D, MACRO_GP_SELECT);
|
||||
// P_INLINE_DATA(cmd->push, 0x40);
|
||||
P_IMMD(p, NV9097, SET_RT_LAYER, {
|
||||
.v = 0,
|
||||
.control = CONTROL_V_SELECTS_LAYER,
|
||||
});
|
||||
// P_MTHD(cmd->push, NVC0_3D, MACRO_TEP_SELECT;
|
||||
// P_INLINE_DATA(cmd->push, 0x30);
|
||||
|
||||
P_IMMD(p, NV9097, SET_POINT_CENTER_MODE, V_OGL);
|
||||
P_IMMD(p, NV9097, SET_EDGE_FLAG, V_TRUE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue