mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 16:00:09 +01:00
mesa/st: move st_pipe_format_to_mesa_format() call to where its used
Reviewed-by: Grazvydas Ignotas <notasas@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
17f05e52e7
commit
87e5f39cf1
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue