dri/nouveau: Minor cleanup.
authorFrancisco Jerez <currojerez@riseup.net>
Sat, 9 Oct 2010 23:45:23 +0000 (01:45 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Sat, 9 Oct 2010 23:48:01 +0000 (01:48 +0200)
src/mesa/drivers/dri/nouveau/nouveau_context.c
src/mesa/drivers/dri/nouveau/nv10_context.c
src/mesa/drivers/dri/nouveau/nv10_render.c
src/mesa/drivers/dri/nouveau/nv20_render.c

index 1121d2d3d391321fda344ca63f8c503102a786f5..6369e8d7b14fbf9b72ba735e639cfb30961b9a55 100644 (file)
@@ -353,6 +353,5 @@ nouveau_validate_framebuffer(GLcontext *ctx)
                validate_framebuffer(dri_ctx, dri_read,
                                     &dri_ctx->dri2.read_stamp);
 
-       if (nouveau_next_dirty_state(ctx) >= 0)
-               nouveau_state_emit(ctx);
+       nouveau_state_emit(ctx);
 }
index 41723ff190f4a977ba3a97dc8361b2af8d8464f8..f0e274419470b4142c7b96b543eb73041631447b 100644 (file)
@@ -305,7 +305,7 @@ nv10_hwctx_init(GLcontext *ctx)
        OUT_RING(chan, 1);
 
        BEGIN_RING(chan, celsius, NV10TCL_DEPTH_RANGE_NEAR, 2);
-       OUT_RING(chan, 0.0);
+       OUT_RINGf(chan, 0.0);
        OUT_RINGf(chan, 16777216.0);
 
        FIRE_RING(chan);
index 54245ea6baba6005b69af2629b2e695b85351ebd..e4c51f804cf6913a9661845d2e840124a25586a0 100644 (file)
@@ -167,35 +167,35 @@ nv10_render_bind_vertices(GLcontext *ctx)
 
 #define BATCH_BEGIN(prim)                                              \
        BEGIN_RING(chan, celsius, NV10TCL_VERTEX_BUFFER_BEGIN_END, 1);  \
-       OUT_RING(chan, prim);
+       OUT_RING(chan, prim)
 #define BATCH_END()                                                    \
        BEGIN_RING(chan, celsius, NV10TCL_VERTEX_BUFFER_BEGIN_END, 1);  \
-       OUT_RING(chan, 0);
+       OUT_RING(chan, 0)
 
 #define MAX_PACKET 0x400
 
 #define MAX_OUT_L 0x100
 #define BATCH_PACKET_L(n)                                              \
-       BEGIN_RING_NI(chan, celsius, NV10TCL_VERTEX_BUFFER_DRAW_ARRAYS, n);
+       BEGIN_RING_NI(chan, celsius, NV10TCL_VERTEX_BUFFER_DRAW_ARRAYS, n)
 #define BATCH_OUT_L(i, n)                      \
-       OUT_RING(chan, ((n) - 1) << 24 | (i));
+       OUT_RING(chan, ((n) - 1) << 24 | (i))
 
 #define MAX_OUT_I16 0x2
 #define BATCH_PACKET_I16(n)                                            \
-       BEGIN_RING_NI(chan, celsius, NV10TCL_VB_ELEMENT_U16, n);
+       BEGIN_RING_NI(chan, celsius, NV10TCL_VB_ELEMENT_U16, n)
 #define BATCH_OUT_I16(i0, i1)                  \
-       OUT_RING(chan, (i1) << 16 | (i0));
+       OUT_RING(chan, (i1) << 16 | (i0))
 
 #define MAX_OUT_I32 0x1
 #define BATCH_PACKET_I32(n)                                            \
-       BEGIN_RING_NI(chan, celsius, NV10TCL_VB_ELEMENT_U32, n);
+       BEGIN_RING_NI(chan, celsius, NV10TCL_VB_ELEMENT_U32, n)
 #define BATCH_OUT_I32(i)                       \
-       OUT_RING(chan, i);
+       OUT_RING(chan, i)
 
 #define IMM_PACKET(m, n)                       \
-       BEGIN_RING(chan, celsius, m, n);
+       BEGIN_RING(chan, celsius, m, n)
 #define IMM_OUT(x)                             \
-       OUT_RINGf(chan, x);
+       OUT_RINGf(chan, x)
 
 #define TAG(x) nv10_##x
 #include "nouveau_render_t.c"
index a696ac107f54c5b92e46d2ae6981d7f652324663..d7c3e747f02e5746d72f777833cc6cfba568a5aa 100644 (file)
@@ -191,35 +191,35 @@ nv20_render_bind_vertices(GLcontext *ctx)
 
 #define BATCH_BEGIN(prim)                                      \
        BEGIN_RING(chan, kelvin, NV20TCL_VERTEX_BEGIN_END, 1);  \
-       OUT_RING(chan, prim);
+       OUT_RING(chan, prim)
 #define BATCH_END()                                            \
        BEGIN_RING(chan, kelvin, NV20TCL_VERTEX_BEGIN_END, 1);  \
-       OUT_RING(chan, 0);
+       OUT_RING(chan, 0)
 
 #define MAX_PACKET 0x400
 
 #define MAX_OUT_L 0x100
 #define BATCH_PACKET_L(n)                                              \
-       BEGIN_RING_NI(chan, kelvin, NV20TCL_VB_VERTEX_BATCH, n);
+       BEGIN_RING_NI(chan, kelvin, NV20TCL_VB_VERTEX_BATCH, n)
 #define BATCH_OUT_L(i, n)                      \
-       OUT_RING(chan, ((n) - 1) << 24 | (i));
+       OUT_RING(chan, ((n) - 1) << 24 | (i))
 
 #define MAX_OUT_I16 0x2
 #define BATCH_PACKET_I16(n)                                    \
-       BEGIN_RING_NI(chan, kelvin, NV20TCL_VB_ELEMENT_U16, n);
+       BEGIN_RING_NI(chan, kelvin, NV20TCL_VB_ELEMENT_U16, n)
 #define BATCH_OUT_I16(i0, i1)                  \
-       OUT_RING(chan, (i1) << 16 | (i0));
+       OUT_RING(chan, (i1) << 16 | (i0))
 
 #define MAX_OUT_I32 0x1
 #define BATCH_PACKET_I32(n)                                    \
-       BEGIN_RING_NI(chan, kelvin, NV20TCL_VB_ELEMENT_U32, n);
+       BEGIN_RING_NI(chan, kelvin, NV20TCL_VB_ELEMENT_U32, n)
 #define BATCH_OUT_I32(i)                       \
-       OUT_RING(chan, i);
+       OUT_RING(chan, i)
 
 #define IMM_PACKET(m, n)                       \
-       BEGIN_RING(chan, kelvin, m, n);
+       BEGIN_RING(chan, kelvin, m, n)
 #define IMM_OUT(x)                             \
-       OUT_RINGf(chan, x);
+       OUT_RINGf(chan, x)
 
 #define TAG(x) nv20_##x
 #include "nouveau_render_t.c"