mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 22:10:11 +01:00
Revert "st/mesa: remove unused variables to fix compile warnings"
This reverts commit 810d2e167c.
The pscreen variable is used in an assertion. Use "(void) pscreen;"
to silence the warning.
This commit is contained in:
parent
bad1b271a0
commit
1aa8ad8b50
1 changed files with 2 additions and 0 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue