st/mesa: add an entirely separate codepath for setting up buffer views
authorMarek Olšák <marek.olsak@amd.com>
Sun, 11 Jun 2017 23:00:04 +0000 (01:00 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 21 Jun 2017 23:51:02 +0000 (01:51 +0200)
commitf0ecd36ef8e10c087738c92cf62bad3815366963
tree96d4e61900810824132c07d87a1a8eede782a435
parentfbd9cc61694dcb59b3d2a742073ed231f848702d
st/mesa: add an entirely separate codepath for setting up buffer views

Remove handling of buffers from all texture paths.
This simplifies things for both buffers and textures.

get_sampler_view_format is also cleaned up not to call
util_format_is_depth_and_stencil.

v2: also update st_NewTextureHandle

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> (v1)
src/mesa/state_tracker/st_atom_image.c
src/mesa/state_tracker/st_atom_texture.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_cb_texture.h
src/mesa/state_tracker/st_sampler_view.c
src/mesa/state_tracker/st_sampler_view.h