diff options
author | Brian Paul <[email protected]> | 2012-10-08 17:31:10 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-10-08 17:32:54 -0600 |
commit | 1aa8ad8b50f6bb8e7ec4911eef2518dc485b9285 (patch) | |
tree | 654a2e5fb8da550e156806c57002d107907cbac7 /src/mesa | |
parent | bad1b271a0d0d2226d25a11c72c2b2d8b03833d4 (diff) |
Revert "st/mesa: remove unused variables to fix compile warnings"
This reverts commit 810d2e167c5a507084d1865a260809b847ca3201.
The pscreen variable is used in an assertion. Use "(void) pscreen;"
to silence the warning.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_mesa_to_tgsi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_mesa_to_tgsi.c b/src/mesa/state_tracker/st_mesa_to_tgsi.c index 92f52671424..c614bdec56c 100644 --- a/src/mesa/state_tracker/st_mesa_to_tgsi.c +++ b/src/mesa/state_tracker/st_mesa_to_tgsi.c @@ -1169,8 +1169,10 @@ st_translate_mesa_program( * inconsistency, we insert a U2F. */ struct st_context *st = st_context(ctx); + struct pipe_screen *pscreen = st->pipe->screen; assert(procType == TGSI_PROCESSOR_VERTEX); assert(pscreen->get_shader_param(pscreen, PIPE_SHADER_VERTEX, PIPE_SHADER_CAP_INTEGERS)); + (void) pscreen; /* silence non-debug build warnings */ if (!ctx->Const.NativeIntegers) { struct ureg_dst temp = ureg_DECL_local_temporary(t->ureg); ureg_U2F( t->ureg, ureg_writemask(temp, TGSI_WRITEMASK_X), t->systemValues[i]); |