gallium/screen: Add pipe_screen::resource_get_param
authorJordan Justen <jordan.l.justen@intel.com>
Thu, 1 Aug 2019 20:30:21 +0000 (13:30 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Tue, 13 Aug 2019 08:12:24 +0000 (01:12 -0700)
commit0346b70083311c65a55038d3e3829da551e229cb
treeadcc8199bb1d2489667061b208b843fba0fa906f
parent2353f7f7ef4b836bc39975e0649094a5d8648ee5
gallium/screen: Add pipe_screen::resource_get_param

This function retrieves individual parameters selected by enum
pipe_resource_param. It can be used as a more direct alternative to
pipe_screen::resource_get_handle.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Acked-by: Eric Anholt <eric@anholt.net>
src/gallium/include/pipe/p_defines.h
src/gallium/include/pipe/p_screen.h