diff options
author | Jason Ekstrand <[email protected]> | 2017-11-11 11:10:59 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-11-27 16:22:12 -0800 |
commit | 67b676f0c5d4e44ac748292a8a9c639415bd1d5f (patch) | |
tree | 315d01c3a76ddea3ab29ca35541153d630ed429f /src/mesa/drivers/dri | |
parent | 85aa4074a29b5fcb6dbf0d34b85b36c05eeecc02 (diff) |
intel/blorp: Add initial support for indirect clear colors
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/genX_blorp_exec.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/genX_blorp_exec.c b/src/mesa/drivers/dri/i965/genX_blorp_exec.c index f824c127e40..87e90fde91c 100644 --- a/src/mesa/drivers/dri/i965/genX_blorp_exec.c +++ b/src/mesa/drivers/dri/i965/genX_blorp_exec.c @@ -94,6 +94,19 @@ blorp_surface_reloc(struct blorp_batch *batch, uint32_t ss_offset, #endif } +#if GEN_GEN >= 7 +static struct blorp_address +blorp_get_surface_base_address(struct blorp_batch *batch) +{ + assert(batch->blorp->driver_ctx == batch->driver_batch); + struct brw_context *brw = batch->driver_batch; + return (struct blorp_address) { + .buffer = brw->batch.state_bo, + .offset = 0, + }; +} +#endif + static void * blorp_alloc_dynamic_state(struct blorp_batch *batch, uint32_t size, |