summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2014-08-12 14:24:38 +0100
committerJosé Fonseca <[email protected]>2014-08-12 14:25:37 +0100
commitd839be24b3b53717fcc153c3d00afb1c516d926e (patch)
treefb084c6bfb12090027f822a8d77707ed4b7b225f /src/mesa/state_tracker
parent6174f491707607e4ad2eca3fc159ec55be8635fd (diff)
mesa/st: Move declaration to top of block.
To fix MSVC build failure. Trivial.
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_format.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c
index ae71dd786cf..5cb25917d3a 100644
--- a/src/mesa/state_tracker/st_format.c
+++ b/src/mesa/state_tracker/st_format.c
@@ -803,13 +803,15 @@ test_format_conversion(struct st_context *st)
/* test all Mesa formats */
for (i = 1; i < MESA_FORMAT_COUNT; i++) {
+ enum pipe_format pf;
+
/* ETC formats are translated differently, skip them. */
if (_mesa_is_format_etc2(i))
continue;
if (i == MESA_FORMAT_ETC1_RGB8 && !st->has_etc1)
continue;
- enum pipe_format pf = st_mesa_format_to_pipe_format(st, i);
+ pf = st_mesa_format_to_pipe_format(st, i);
if (pf != PIPE_FORMAT_NONE) {
mesa_format mf = st_pipe_format_to_mesa_format(pf);
assert(mf == i);