diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2008-05-31 16:36:50 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2008-05-31 16:36:50 +0000 |
commit | edbbb30acbaac6dea32efa3b4c4e7e8889abff8c (patch) | |
tree | 3cb8e3971ac4700aab604f90adf30c0fc2dabd87 /dist/Mesa/src/mesa/drivers/dri/i965/brw_urb.c | |
parent | 793dbf86dba9abbe60b4cff5b0049e603ab61e7e (diff) |
Update to Mesa 7.0.3. tested my oga@ and johan@
Diffstat (limited to 'dist/Mesa/src/mesa/drivers/dri/i965/brw_urb.c')
-rw-r--r-- | dist/Mesa/src/mesa/drivers/dri/i965/brw_urb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dist/Mesa/src/mesa/drivers/dri/i965/brw_urb.c b/dist/Mesa/src/mesa/drivers/dri/i965/brw_urb.c index 79ff2b2d4..4ca6e99db 100644 --- a/dist/Mesa/src/mesa/drivers/dri/i965/brw_urb.c +++ b/dist/Mesa/src/mesa/drivers/dri/i965/brw_urb.c @@ -69,7 +69,7 @@ static GLboolean check_urb_layout( struct brw_context *brw ) brw->urb.sf_start = brw->urb.clip_start + brw->urb.nr_clip_entries * brw->urb.vsize; brw->urb.cs_start = brw->urb.sf_start + brw->urb.nr_sf_entries * brw->urb.sfsize; - return brw->urb.cs_start + brw->urb.nr_cs_entries * brw->urb.csize <= 256; + return brw->urb.cs_start + brw->urb.nr_cs_entries * brw->urb.csize <= URB_SIZES(brw); } /* Most minimal update, forces re-emit of URB fence packet after GS @@ -131,7 +131,7 @@ static void recalculate_urb_fence( struct brw_context *brw ) brw->urb.constrained = 1; - if (check_urb_layout(brw)) { + if (!check_urb_layout(brw)) { /* This is impossible, given the maximal sizes of urb * entries and the values for minimum nr of entries * provided above. @@ -153,7 +153,7 @@ static void recalculate_urb_fence( struct brw_context *brw ) brw->urb.clip_start, brw->urb.sf_start, brw->urb.cs_start, - 256); + URB_SIZES(brw)); brw->state.dirty.brw |= BRW_NEW_URB_FENCE; } @@ -191,13 +191,13 @@ void brw_upload_urb_fence(struct brw_context *brw) /* The ordering below is correct, not the layout in the * instruction. * - * There are 256 urb reg pairs in total. + * There are 256/384 urb reg pairs in total. */ uf.bits0.vs_fence = brw->urb.gs_start; uf.bits0.gs_fence = brw->urb.clip_start; uf.bits0.clp_fence = brw->urb.sf_start; uf.bits1.sf_fence = brw->urb.cs_start; - uf.bits1.cs_fence = 256; + uf.bits1.cs_fence = URB_SIZES(brw); BRW_BATCH_STRUCT(brw, &uf); } |