From bae5b2a87c0b8f43df33124fa92f167f51148c9e Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 21 Nov 2017 07:27:06 -0700 Subject: [PATCH] svga: s/unsigned/SVGA3dDevCapIndex/ Reviewed-by: Charmaine Lee --- src/gallium/drivers/svga/svga_screen.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c index ab604b989b4..86f53b21365 100644 --- a/src/gallium/drivers/svga/svga_screen.c +++ b/src/gallium/drivers/svga/svga_screen.c @@ -107,7 +107,8 @@ svga_get_name( struct pipe_screen *pscreen ) /** Helper for querying float-valued device cap */ static float -get_float_cap(struct svga_winsys_screen *sws, unsigned cap, float defaultVal) +get_float_cap(struct svga_winsys_screen *sws, SVGA3dDevCapIndex cap, + float defaultVal) { SVGA3dDevCapResult result; if (sws->get_cap(sws, cap, &result)) @@ -119,7 +120,8 @@ get_float_cap(struct svga_winsys_screen *sws, unsigned cap, float defaultVal) /** Helper for querying uint-valued device cap */ static unsigned -get_uint_cap(struct svga_winsys_screen *sws, unsigned cap, unsigned defaultVal) +get_uint_cap(struct svga_winsys_screen *sws, SVGA3dDevCapIndex cap, + unsigned defaultVal) { SVGA3dDevCapResult result; if (sws->get_cap(sws, cap, &result)) @@ -131,7 +133,8 @@ get_uint_cap(struct svga_winsys_screen *sws, unsigned cap, unsigned defaultVal) /** Helper for querying boolean-valued device cap */ static boolean -get_bool_cap(struct svga_winsys_screen *sws, unsigned cap, boolean defaultVal) +get_bool_cap(struct svga_winsys_screen *sws, SVGA3dDevCapIndex cap, + boolean defaultVal) { SVGA3dDevCapResult result; if (sws->get_cap(sws, cap, &result)) -- 2.30.2