i965g: enable line stipple packet emit
authorKeith Whitwell <keithw@vmware.com>
Wed, 4 Nov 2009 23:44:16 +0000 (23:44 +0000)
committerKeith Whitwell <keithw@vmware.com>
Wed, 4 Nov 2009 23:44:25 +0000 (23:44 +0000)
With this change, trivial/tri manages to build and emit
a fairly unconvincing command buffer (to the debug winsys),
and then crashes.

src/gallium/drivers/i965/brw_misc_state.c

index e786ea11000d5541f648e679d45d388acda7e618..b562eb715298c397b1fc149498502fc11b55b3b3 100644 (file)
@@ -37,6 +37,7 @@
 #include "brw_state.h"
 #include "brw_defines.h"
 #include "brw_screen.h"
+#include "brw_pipe_rast.h"
 
 
 
@@ -342,7 +343,7 @@ const struct brw_tracked_state brw_polygon_stipple = {
 
 static int upload_line_stipple(struct brw_context *brw)
 {
-   struct brw_line_stipple *bls = NULL; //brw->curr.rast->bls;
+   struct brw_line_stipple *bls = &brw->curr.rast->bls;
    BRW_CACHED_BATCH_STRUCT(brw, bls);
    return 0;
 }