nv30: Emit viewport state using state objects

This commit is contained in:
Patrice Mandin
2008-07-03 22:42:30 +02:00
parent e7e231a511
commit 568b477b9c
3 changed files with 5 additions and 9 deletions
+1
View File
@@ -215,6 +215,7 @@ extern struct nv30_state_entry nv30_state_stipple;
extern struct nv30_state_entry nv30_state_blend;
extern struct nv30_state_entry nv30_state_blend_colour;
extern struct nv30_state_entry nv30_state_zsa;
extern struct nv30_state_entry nv30_state_viewport;
extern struct nv30_state_entry nv30_state_framebuffer;
/* nv30_vbo.c */
+3 -9
View File
@@ -617,15 +617,9 @@ nv30_set_viewport_state(struct pipe_context *pipe,
{
struct nv30_context *nv30 = nv30_context(pipe);
BEGIN_RING(rankine, NV34TCL_VIEWPORT_TRANSLATE_X, 8);
OUT_RINGf (vpt->translate[0]);
OUT_RINGf (vpt->translate[1]);
OUT_RINGf (vpt->translate[2]);
OUT_RINGf (vpt->translate[3]);
OUT_RINGf (vpt->scale[0]);
OUT_RINGf (vpt->scale[1]);
OUT_RINGf (vpt->scale[2]);
OUT_RINGf (vpt->scale[3]);
nv30->viewport = *vpt;
nv30->dirty |= NV30_NEW_VIEWPORT;
/*nv30->draw_dirty |= NV30_NEW_VIEWPORT;*/
}
static void
@@ -9,6 +9,7 @@ static struct nv30_state_entry *render_states[] = {
&nv30_state_blend,
&nv30_state_blend_colour,
&nv30_state_zsa,
&nv30_state_viewport,
NULL
};