diff options
author | Eric Anholt <eric@anholt.net> | 2014-02-25 14:25:46 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2014-03-14 12:56:22 -0700 |
commit | 2f879356b552ad75bebbafc8d4bc1c97834b8b79 (patch) | |
tree | 1a74df64b6e2d4eccf72ce8f1ced377144e6609c /src/mesa/drivers/dri/i965/intel_extensions.c | |
parent | 1990da2568a0da79c6011bd83e7f7fb8bb099827 (diff) | |
download | external_mesa3d-2f879356b552ad75bebbafc8d4bc1c97834b8b79.zip external_mesa3d-2f879356b552ad75bebbafc8d4bc1c97834b8b79.tar.gz external_mesa3d-2f879356b552ad75bebbafc8d4bc1c97834b8b79.tar.bz2 |
i965: Add support for GL_ARB_buffer_storage.
It turns out we can allow COHERENT storage/mappings all the time,
regardless of LLC vs non-LLC. It just means never using temporary
mappings to avoid GPU stalls, and on non-LLC we have to use the GTT intead
of CPU mappings. If we were to use CPU maps on non-LLC (which might be
useful if apps end up using buffer_storage on PBO reads, to avoid WC read
slowness), those would be PERSISTENT but not COHERENT, but doing that
would require us driving the clflushes from userspace somehow.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_extensions.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_extensions.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c index 5094c2b..2a68758 100644 --- a/src/mesa/drivers/dri/i965/intel_extensions.c +++ b/src/mesa/drivers/dri/i965/intel_extensions.c @@ -162,6 +162,7 @@ intelInitExtensions(struct gl_context *ctx) assert(brw->gen >= 4); + ctx->Extensions.ARB_buffer_storage = true; ctx->Extensions.ARB_depth_buffer_float = true; ctx->Extensions.ARB_depth_clamp = true; ctx->Extensions.ARB_depth_texture = true; |