From 0f40f4ffdae7b9cc5b9cb32a9373ab95ebee4383 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 7 Feb 2018 18:18:39 -0700 Subject: tgsi: s/unsigned/enum pipe_shader_type/ in ureg code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit And add a default switch case to silence a compiler warning. Reviewed-by: Mathias Fröhlich Reviewed-by: Roland Scheidegger --- src/gallium/auxiliary/tgsi/tgsi_ureg.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gallium/auxiliary/tgsi/tgsi_ureg.h') diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.h b/src/gallium/auxiliary/tgsi/tgsi_ureg.h index 03496896aa4..e8ebae94357 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_ureg.h +++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.h @@ -93,10 +93,11 @@ struct ureg_dst struct pipe_context; struct ureg_program * -ureg_create(unsigned processor); +ureg_create(enum pipe_shader_type processor); struct ureg_program * -ureg_create_with_screen(unsigned processor, struct pipe_screen *screen); +ureg_create_with_screen(enum pipe_shader_type processor, + struct pipe_screen *screen); const struct tgsi_token * ureg_finalize( struct ureg_program * ); -- cgit v1.2.3