[Mesa-dev] [PATCH 13/17] i965: Use a separate state buffer, but avoid changing flushing behavior.

Chris Wilson chris at chris-wilson.co.uk
Wed Sep 6 12:12:10 UTC 2017


Quoting Kenneth Graunke (2017-09-06 01:09:46)
> @@ -156,11 +158,14 @@ intel_batchbuffer_reset(struct intel_batchbuffer *batch,
>     batch->map = brw_bo_map(NULL, batch->bo, MAP_READ | MAP_WRITE);
>     batch->map_next = batch->map;
>  
> +   batch->state_bo = brw_bo_alloc(bufmgr, "statebuffer", STATE_SZ, 4096);
> +   batch->state_map = brw_bo_map(NULL, batch->state_bo, MAP_READ | MAP_WRITE);
> +   batch->state_used = 1; /* don't make 0 valid */

You'll want to mark this state_bo with EXEC_OBJECT_CAPTURE.
-Chris


More information about the mesa-dev mailing list