panfrost: Add a panfrost_sampler_desc_init() helper
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 5 Mar 2020 15:26:56 +0000 (16:26 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Tue, 10 Mar 2020 11:47:34 +0000 (12:47 +0100)
commit2b946a1d2b5319d2a24c04c79a64706b89efcc9e
tree1379076b25db2d7e2f23a52035286adf6a0a1624
parentb02f97c87559256086a935836abae3f67ad478c6
panfrost: Add a panfrost_sampler_desc_init() helper

It just makes sense to group all HW descriptor initilization logic in
pan_cmdstream.c, so let's move this code out of
panfrost_create_sampler_state().

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4083>
src/gallium/drivers/panfrost/pan_cmdstream.c
src/gallium/drivers/panfrost/pan_cmdstream.h
src/gallium/drivers/panfrost/pan_context.c