mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
nv50: add NV84_3D macro
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
a5b3115f0a
commit
9e40a621c1
3 changed files with 4 additions and 3 deletions
|
|
@ -686,7 +686,7 @@ nv50_screen_init_hwctx(struct nv50_screen *screen)
|
|||
BEGIN_NV04(push, NV50_3D(VB_ELEMENT_BASE), 1);
|
||||
PUSH_DATA (push, 0);
|
||||
if (screen->base.class_3d >= NV84_3D_CLASS) {
|
||||
BEGIN_NV04(push, SUBC_3D(NV84_3D_VERTEX_ID_BASE), 1);
|
||||
BEGIN_NV04(push, NV84_3D(VERTEX_ID_BASE), 1);
|
||||
PUSH_DATA (push, 0);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -487,7 +487,7 @@ nv50_draw_arrays(struct nv50_context *nv50,
|
|||
BEGIN_NV04(push, NV50_3D(VB_ELEMENT_BASE), 1);
|
||||
PUSH_DATA (push, 0);
|
||||
if (nv50->screen->base.class_3d >= NV84_3D_CLASS) {
|
||||
BEGIN_NV04(push, SUBC_3D(NV84_3D_VERTEX_ID_BASE), 1);
|
||||
BEGIN_NV04(push, NV84_3D(VERTEX_ID_BASE), 1);
|
||||
PUSH_DATA (push, 0);
|
||||
}
|
||||
nv50->state.index_bias = 0;
|
||||
|
|
@ -613,7 +613,7 @@ nv50_draw_elements(struct nv50_context *nv50, bool shorten,
|
|||
BEGIN_NV04(push, NV50_3D(VB_ELEMENT_BASE), 1);
|
||||
PUSH_DATA (push, index_bias);
|
||||
if (nv50->screen->base.class_3d >= NV84_3D_CLASS) {
|
||||
BEGIN_NV04(push, SUBC_3D(NV84_3D_VERTEX_ID_BASE), 1);
|
||||
BEGIN_NV04(push, NV84_3D(VERTEX_ID_BASE), 1);
|
||||
PUSH_DATA (push, index_bias);
|
||||
}
|
||||
nv50->state.index_bias = index_bias;
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ PUSH_REFN(struct nouveau_pushbuf *push, struct nouveau_bo *bo, uint32_t flags)
|
|||
|
||||
#define SUBC_3D(m) 3, (m)
|
||||
#define NV50_3D(n) SUBC_3D(NV50_3D_##n)
|
||||
#define NV84_3D(n) SUBC_3D(NV84_3D_##n)
|
||||
#define NVA0_3D(n) SUBC_3D(NVA0_3D_##n)
|
||||
|
||||
#define SUBC_2D(m) 4, (m)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue