i965: fix gs_prog aperture check

This commit is contained in:
Dave Airlie 2008-04-18 15:05:35 +10:00
parent f2a6404ef3
commit e149e1b953

View file

@ -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;
}