From 23eec54bb0f368d9c88894b544b4af8f01cae2ae Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 6 Sep 2011 16:50:27 -0600 Subject: [PATCH] i965: add casts to silence int/enum conversion warnings --- src/mesa/drivers/dri/i965/brw_fs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 1f3d9d868dd..7f5194b06ed 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -672,7 +672,7 @@ fs_visitor::calculate_urb_setup() /* FINISHME: The sf doesn't map VS->FS inputs for us very well. */ for (unsigned int i = 0; i < VERT_RESULT_MAX; i++) { if (c->key.vp_outputs_written & BITFIELD64_BIT(i)) { - int fp_index = _mesa_vert_result_to_frag_attrib(i); + int fp_index = _mesa_vert_result_to_frag_attrib((gl_vert_result) i); if (fp_index >= 0) urb_setup[fp_index] = urb_next++; @@ -1826,7 +1826,7 @@ brw_fs_precompile(struct gl_context *ctx, struct gl_shader_program *prog) key.proj_attrib_mask |= 1 << i; - int vp_index = _mesa_vert_result_to_frag_attrib(i); + int vp_index = _mesa_vert_result_to_frag_attrib((gl_vert_result) i); if (vp_index >= 0) key.vp_outputs_written |= BITFIELD64_BIT(vp_index); -- 2.30.2