diff options
author | Timothy Arceri <[email protected]> | 2017-07-20 10:04:40 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-07-26 10:39:52 +1000 |
commit | 87e5f39cf1777a7fd3d8fc3c5fbc969ed743ea05 (patch) | |
tree | b08bb5fd6cc82bf87ec44fec293f94ab79dd91e4 /src/mesa | |
parent | 17f05e52e750489c159541a178c363401c294249 (diff) |
mesa/st: move st_pipe_format_to_mesa_format() call to where its used
Reviewed-by: Grazvydas Ignotas <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_format.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_format.c b/src/mesa/state_tracker/st_format.c index 012f1a40151..64a3a812791 100644 --- a/src/mesa/state_tracker/st_format.c +++ b/src/mesa/state_tracker/st_format.c @@ -1035,12 +1035,11 @@ test_format_conversion(struct st_context *st) /* Test all Gallium formats */ for (i = 1; i < PIPE_FORMAT_COUNT; i++) { - mesa_format mf = st_pipe_format_to_mesa_format(i); - /* ETC formats are translated differently, skip them. */ if (i == PIPE_FORMAT_ETC1_RGB8 && !st->has_etc1) continue; + mesa_format mf = st_pipe_format_to_mesa_format(i); if (_mesa_is_format_etc2(mf) && !st->has_etc2) continue; |