gallivm: (trivial) handle non-aligned fetch for lp_build_fetch_rgba_soa
authorRoland Scheidegger <sroland@vmware.com>
Sun, 11 Dec 2016 22:37:30 +0000 (23:37 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Wed, 21 Dec 2016 03:48:24 +0000 (04:48 +0100)
commitd7d23aee4b41de64781fe249ca9a99a9166b097d
tree42a2160da465a7512d97934c8e3549039693bfa5
parent123e947228241e743a4d0fdb8a911f57a3dd4ef9
gallivm: (trivial) handle non-aligned fetch for lp_build_fetch_rgba_soa

soa fetch so far always assumed that data was aligned. However, we want to
use this for vertex fetch, and data might not be aligned there, so handle
it in this path too (basically just pass through alignment through to other
functions). (It looks like it wouldn't work for for cached s3tc but this is
no different than with AoS fetch.)

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_format.h
src/gallium/auxiliary/gallivm/lp_bld_format_soa.c
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c