i965: Rename do_<stage>_prog to brw_compile_<stage>_prog (and export)
[mesa.git] / src / mesa / drivers / dri / nouveau / nv20_state_polygon.c
index 3a320e2dac58aa0465759f1175690dd621507464..4c562769046761f6963f379352469ba79dee4645 100644 (file)
 #include "nouveau_driver.h"
 #include "nouveau_context.h"
 #include "nouveau_gldefs.h"
-#include "nouveau_class.h"
+#include "nv20_3d.xml.h"
 #include "nv20_driver.h"
 
 void
-nv20_emit_point_mode(GLcontext *ctx, int emit)
+nv20_emit_point_mode(struct gl_context *ctx, int emit)
 {
-       struct nouveau_channel *chan = context_chan(ctx);
-       struct nouveau_grobj *kelvin = context_eng3d(ctx);
+       struct nouveau_pushbuf *push = context_push(ctx);
 
-       BEGIN_RING(chan, kelvin, NV20TCL_POINT_SIZE, 1);
+       BEGIN_NV04(push, NV20_3D(POINT_SIZE), 1);
        if (context_chipset(ctx) >= 0x25)
-               OUT_RINGf(chan, ctx->Point.Size);
+               PUSH_DATAf(push, ctx->Point.Size);
        else
-               OUT_RING(chan, (uint32_t)(ctx->Point.Size * 8));
+               PUSH_DATA (push, (uint32_t)(ctx->Point.Size * 8));
 }