diff options
author | Kenneth Graunke <[email protected]> | 2017-08-10 21:10:31 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-08-12 01:42:32 -0700 |
commit | 22e1d8832c90702b4cd972e48f0db809f7c7639f (patch) | |
tree | 9f1d191fb956bcceb0c19472863aba9dcd453f7a /src/mesa | |
parent | da0840246fd91134a61e35f1bd987d77111aed26 (diff) |
i965: Guard GetBufferSubData's streaming memcpy load with USE_SSE41
This should hopefully fix build issues on 32-bit Android-x86.
v2: s/USE_SSE4_1/USE_SS41/, caught by Gražvydas Ignotas.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102050
Reviewed-by: Tapani Pälli <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_buffer_objects.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_buffer_objects.c b/src/mesa/drivers/dri/i965/intel_buffer_objects.c index ee591168283..658b1edf1c9 100644 --- a/src/mesa/drivers/dri/i965/intel_buffer_objects.c +++ b/src/mesa/drivers/dri/i965/intel_buffer_objects.c @@ -342,6 +342,7 @@ brw_get_buffer_subdata(struct gl_context *ctx, unsigned int map_flags = MAP_READ; mem_copy_fn memcpy_fn = memcpy; +#ifdef USE_SSE41 if (!intel_obj->buffer->cache_coherent && cpu_has_sse4_1) { /* Rather than acquire a new WB mmaping of the buffer object and pull * it into the CPU cache, keep using the WC mmap that we have for writes, @@ -350,6 +351,7 @@ brw_get_buffer_subdata(struct gl_context *ctx, map_flags |= MAP_COHERENT; memcpy_fn = (mem_copy_fn) _mesa_streaming_load_memcpy; } +#endif void *map = brw_bo_map(brw, intel_obj->buffer, map_flags); if (unlikely(!map)) { |