mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-27 09:50:20 +01:00
nouveau: some swtcl fixes
This commit is contained in:
parent
8e1c3bd0b4
commit
ea3d11a3d8
1 changed files with 9 additions and 0 deletions
|
|
@ -315,6 +315,9 @@ static inline void nv10_render_line(GLcontext *ctx,GLuint v1,GLuint v2)
|
|||
GLuint vertsize = nmesa->vertex_size;
|
||||
GLuint size_dword = vertsize*(2)/4;
|
||||
|
||||
/* OUT_RINGp wants size in DWORDS */
|
||||
vertsize >>= 2;
|
||||
|
||||
nv10ExtendPrimitive(nmesa, size_dword);
|
||||
nv10StartPrimitive(nmesa,GL_LINES+1,size_dword);
|
||||
OUT_RINGp((nouveauVertex*)(vertptr+(v1*vertsize)),vertsize);
|
||||
|
|
@ -329,6 +332,9 @@ static inline void nv10_render_triangle(GLcontext *ctx,GLuint v1,GLuint v2,GLuin
|
|||
GLuint vertsize = nmesa->vertex_size;
|
||||
GLuint size_dword = vertsize*(3)/4;
|
||||
|
||||
/* OUT_RINGp wants size in DWORDS */
|
||||
vertsize >>= 2;
|
||||
|
||||
nv10ExtendPrimitive(nmesa, size_dword);
|
||||
nv10StartPrimitive(nmesa,GL_TRIANGLES+1,size_dword);
|
||||
OUT_RINGp((nouveauVertex*)(vertptr+(v1*vertsize)),vertsize);
|
||||
|
|
@ -344,6 +350,9 @@ static inline void nv10_render_quad(GLcontext *ctx,GLuint v1,GLuint v2,GLuint v3
|
|||
GLuint vertsize = nmesa->vertex_size;
|
||||
GLuint size_dword = vertsize*(4)/4;
|
||||
|
||||
/* OUT_RINGp wants size in DWORDS */
|
||||
vertsize >>= 2;
|
||||
|
||||
nv10ExtendPrimitive(nmesa, size_dword);
|
||||
nv10StartPrimitive(nmesa,GL_QUADS+1,size_dword);
|
||||
OUT_RINGp((nouveauVertex*)(vertptr+(v1*vertsize)),vertsize);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue