From 2c240a52161f5ff875fc86e22ad688f843dfb356 Mon Sep 17 00:00:00 2001 From: Tapani Pälli Date: Fri, 22 Mar 2019 14:33:00 +0200 Subject: st/mesa: fix warnings about implicit conversion on enumeration type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These enums match but compiler warns about implicit conversion. Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin Reviewed-by: Dave Airlie --- src/mesa/state_tracker/st_cb_drawpixels.c | 2 +- src/mesa/state_tracker/st_cb_drawtex.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mesa/state_tracker/st_cb_drawpixels.c b/src/mesa/state_tracker/st_cb_drawpixels.c index 6b7d4f28167..5f2d50ceb1b 100644 --- a/src/mesa/state_tracker/st_cb_drawpixels.c +++ b/src/mesa/state_tracker/st_cb_drawpixels.c @@ -310,7 +310,7 @@ st_make_passthrough_vertex_shader(struct st_context *st) return; enum pipe_shader_ir preferred_ir = - screen->get_shader_param(screen, MESA_SHADER_VERTEX, + screen->get_shader_param(screen, PIPE_SHADER_VERTEX, PIPE_SHADER_CAP_PREFERRED_IR); if (preferred_ir == PIPE_SHADER_IR_NIR) { diff --git a/src/mesa/state_tracker/st_cb_drawtex.c b/src/mesa/state_tracker/st_cb_drawtex.c index 111767d88a4..f08ffde6b01 100644 --- a/src/mesa/state_tracker/st_cb_drawtex.c +++ b/src/mesa/state_tracker/st_cb_drawtex.c @@ -127,7 +127,7 @@ lookup_shader(struct st_context *st, } enum pipe_shader_ir preferred_ir = - screen->get_shader_param(screen, MESA_SHADER_VERTEX, + screen->get_shader_param(screen, PIPE_SHADER_VERTEX, PIPE_SHADER_CAP_PREFERRED_IR); if (preferred_ir == PIPE_SHADER_IR_NIR) { -- cgit v1.2.3