mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
Revert "llvmpipe: optimize the lp_setup_fence() function"
This reverts commit a9063cad0f.
Not too surprisingly, this change caused some regressions.
Revert it for the time being.
See fd.o bug 27320.
This commit is contained in:
parent
67e377bda6
commit
8814bb652a
1 changed files with 6 additions and 20 deletions
|
|
@ -318,30 +318,16 @@ lp_setup_fence( struct lp_setup_context *setup )
|
|||
{
|
||||
struct lp_scene *scene = lp_setup_get_current_scene(setup);
|
||||
const unsigned rank = lp_scene_get_num_bins( scene ); /* xxx */
|
||||
struct lp_fence *fence;
|
||||
struct lp_fence *fence = lp_fence_create(rank);
|
||||
|
||||
LP_DBG(DEBUG_SETUP, "%s rank %u\n", __FUNCTION__, rank);
|
||||
|
||||
if (setup->state == SETUP_FLUSHED) {
|
||||
/* We're in a flushed state so there's nothing in the bins.
|
||||
* No need to wait on a fence.
|
||||
*/
|
||||
fence = NULL;
|
||||
}
|
||||
else {
|
||||
/* There's material in the bins. Emit the fence into the bins.
|
||||
* When the rasterizer(s) find the fence, they'll signal on it.
|
||||
*/
|
||||
fence = lp_fence_create(rank);
|
||||
set_scene_state( setup, SETUP_ACTIVE );
|
||||
|
||||
set_scene_state( setup, SETUP_ACTIVE );
|
||||
|
||||
/* insert the fence into all command bins */
|
||||
lp_scene_bin_everywhere( scene,
|
||||
lp_rast_fence,
|
||||
lp_rast_arg_fence(fence) );
|
||||
|
||||
}
|
||||
/* insert the fence into all command bins */
|
||||
lp_scene_bin_everywhere( scene,
|
||||
lp_rast_fence,
|
||||
lp_rast_arg_fence(fence) );
|
||||
|
||||
return (struct pipe_fence_handle *) fence;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue