diff options
author | Paul Berry <stereotype441@gmail.com> | 2013-08-10 21:13:33 -0700 |
---|---|---|
committer | Paul Berry <stereotype441@gmail.com> | 2013-08-23 11:03:08 -0700 |
commit | a9e8c10bd76f9a94b878b76bb5ae696beeaae2e0 (patch) | |
tree | ea75baf62cb0b5a7c4dbb9e207df75286484c75c /src/mesa/drivers/dri/i965/brw_clip_line.c | |
parent | 591fc0861cef499a355c1816641c8c963846b001 (diff) | |
download | external_mesa3d-a9e8c10bd76f9a94b878b76bb5ae696beeaae2e0.zip external_mesa3d-a9e8c10bd76f9a94b878b76bb5ae696beeaae2e0.tar.gz external_mesa3d-a9e8c10bd76f9a94b878b76bb5ae696beeaae2e0.tar.bz2 |
i965: Combine 4 boolean args of brw_urb_WRITE into a flags bitfield.
The arguments to brw_urb_WRITE() were getting pretty unwieldy, and we
have to add more flags to support geometry shaders anyhow.
Also plumb these flags through brw_clip_emit_vue(),
brw_set_urb_message(), and the vec4_instruction class.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_clip_line.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_clip_line.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_clip_line.c b/src/mesa/drivers/dri/i965/brw_clip_line.c index 8466b1c..5238598 100644 --- a/src/mesa/drivers/dri/i965/brw_clip_line.c +++ b/src/mesa/drivers/dri/i965/brw_clip_line.c @@ -282,10 +282,10 @@ static void clip_and_emit_line( struct brw_clip_compile *c ) brw_clip_interp_vertex(c, newvtx0, vtx0, vtx1, c->reg.t0, false); brw_clip_interp_vertex(c, newvtx1, vtx1, vtx0, c->reg.t1, false); - brw_clip_emit_vue(c, newvtx0, 1, 0, + brw_clip_emit_vue(c, newvtx0, BRW_URB_WRITE_ALLOCATE_COMPLETE, (_3DPRIM_LINESTRIP << URB_WRITE_PRIM_TYPE_SHIFT) | URB_WRITE_PRIM_START); - brw_clip_emit_vue(c, newvtx1, 0, 1, + brw_clip_emit_vue(c, newvtx1, BRW_URB_WRITE_EOT_COMPLETE, (_3DPRIM_LINESTRIP << URB_WRITE_PRIM_TYPE_SHIFT) | URB_WRITE_PRIM_END); } |