summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i965/brw_sf_emit.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-11-19 19:15:21 -0800
committerKeith Whitwell <[email protected]>2009-11-19 19:29:33 -0800
commit34a01929d54266e8e5fec47e94859405bce588fa (patch)
tree9e34eebc70365286c87ef5251721ced1d605545b /src/gallium/drivers/i965/brw_sf_emit.c
parent47cef2bb8f5979ae690e89943f83060999a29a55 (diff)
i965g: special case setup when fs has no inputs
Diffstat (limited to 'src/gallium/drivers/i965/brw_sf_emit.c')
-rw-r--r--src/gallium/drivers/i965/brw_sf_emit.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/gallium/drivers/i965/brw_sf_emit.c b/src/gallium/drivers/i965/brw_sf_emit.c
index db52c9553e7..2983e8a9dd4 100644
--- a/src/gallium/drivers/i965/brw_sf_emit.c
+++ b/src/gallium/drivers/i965/brw_sf_emit.c
@@ -352,6 +352,25 @@ static GLboolean calculate_masks( struct brw_sf_compile *c,
}
+void brw_emit_null_setup( struct brw_sf_compile *c )
+{
+ struct brw_compile *p = &c->func;
+
+ /* m0 is implicitly copied from r0 in the send instruction:
+ */
+ brw_urb_WRITE(p,
+ brw_null_reg(),
+ 0,
+ brw_vec8_grf(0, 0), /* r0, will be copied to m0 */
+ 0, /* allocate */
+ 1, /* used */
+ 1, /* msg len */
+ 0, /* response len */
+ 1, /* eot */
+ 1, /* writes complete */
+ 0, /* offset */
+ BRW_URB_SWIZZLE_TRANSPOSE);
+}
void brw_emit_tri_setup( struct brw_sf_compile *c, GLboolean allocate)
{