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
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to