diff options
author | Dave Airlie <airlied@panoply-rh.(none)> | 2008-04-18 15:05:35 +1000 |
---|---|---|
committer | Dave Airlie <airlied@panoply-rh.(none)> | 2008-04-18 15:09:46 +1000 |
commit | e149e1b953bccdf735665547798574e06f989730 (patch) | |
tree | c17ddceb94ee62630e941c50b7559e1257a003b6 /src/mesa | |
parent | f2a6404ef39b4985788aaf9ec8b540704e5aa92b (diff) |
i965: fix gs_prog aperture check
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_gs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_gs.c b/src/mesa/drivers/dri/i965/brw_gs.c index 8ad27624d5..9419315c7a 100644 --- a/src/mesa/drivers/dri/i965/brw_gs.c +++ b/src/mesa/drivers/dri/i965/brw_gs.c @@ -165,7 +165,7 @@ static void populate_key( struct brw_context *brw, static int prepare_gs_prog( struct brw_context *brw ) { struct brw_gs_prog_key key; - + int ret = 0; /* Populate the key: */ populate_key(brw, &key); @@ -183,9 +183,11 @@ static int prepare_gs_prog( struct brw_context *brw ) &brw->gs.prog_data); if (brw->gs.prog_bo == NULL) compile_gs_prog( brw, &key ); + + ret |= dri_bufmgr_check_aperture_space(brw->gs.prog_bo); } - return dri_bufmgr_check_aperture_space(brw->gs.prog_bo); + return ret; } |