radeonsi: don't set sampler buffer offsets in create_sampler_view
authorMarek Olšák <marek.olsak@amd.com>
Sun, 2 Oct 2016 14:05:51 +0000 (16:05 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 4 Oct 2016 14:12:01 +0000 (16:12 +0200)
commit7ce19d90143875367f23240192d438065dc297fa
treebe13b231f467a5acfa7108ba0115e568305a94d3
parent7e6428e0a89815f67ce04c6db5e5fb1368c51ea0
radeonsi: don't set sampler buffer offsets in create_sampler_view

do it at bind time, so that pipe_sampler_view is immutable with regard to
buffer reallocations and we don't have to remember all existing buffer
views.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
src/gallium/drivers/radeonsi/si_descriptors.c
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_state.c