[Mesa-stable] [PATCH] mesa: guard better when building with sse4.1 optimisations
Matt Turner
mattst88 at gmail.com
Tue Aug 12 14:53:22 PDT 2014
On Tue, Aug 12, 2014 at 2:52 PM, Matt Turner <mattst88 at gmail.com> wrote:
>> diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
>> index b36ffc7..1691b15 100644
>> --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
>> +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
>> @@ -2270,8 +2270,10 @@ intel_miptree_map(struct brw_context *brw,
>> mt->bo->size >= brw->max_gtt_map_object_size) {
>> assert(can_blit_slice(mt, level, slice));
>> intel_miptree_map_blit(brw, mt, map, level, slice);
>> +#if defined(USE_SSE41)
>> } else if (!(mode & GL_MAP_WRITE_BIT) && !mt->compressed && cpu_has_sse4_1) {
>> intel_miptree_map_movntdqa(brw, mt, map, level, slice);
>> +#endif
>
> I think we should wrap the definitions of intel_miptree_map_movntdqa
> and intel_miptree_unmap_movntdqa in #if defined(USE_SSE41) as well.
And of course wrap the call to intel_miptree_unmap_movntdqa as well.
More information about the mesa-stable
mailing list