diff options
author | Jonathan Marek <[email protected]> | 2019-07-01 16:42:50 -0400 |
---|---|---|
committer | Jonathan Marek <[email protected]> | 2019-07-04 14:05:18 -0400 |
commit | 66411521ea9394132c6067f5b676dc2751f21d6c (patch) | |
tree | 2720dc65ed0e5c04cd76bd7c4f0aeb09cf9a152e /src/gallium/drivers/etnaviv/etnaviv_rs.c | |
parent | 84c87f40fbd4733d59bd8ff218d0ab82730b5160 (diff) |
etnaviv: combine translate_ts_sampler_format/translate_msaa_format
Both translate the same thing, so just add the missing cases into one.
Signed-off-by: Jonathan Marek <[email protected]>
Reviewed-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_rs.c')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_rs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_rs.c b/src/gallium/drivers/etnaviv/etnaviv_rs.c index 631fced1e37..01e97b2080d 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_rs.c +++ b/src/gallium/drivers/etnaviv/etnaviv_rs.c @@ -655,10 +655,10 @@ etna_try_rs_blit(struct pipe_context *pctx, goto manual; if (src->base.nr_samples > 1) { - uint32_t msaa_format = translate_msaa_format(src_format); - assert(msaa_format != ETNA_NO_MATCH); + uint32_t ts_format = translate_ts_format(src_format); + assert(ts_format != ETNA_NO_MATCH); ts_mem_config |= VIVS_TS_MEM_CONFIG_COLOR_COMPRESSION | - VIVS_TS_MEM_CONFIG_COLOR_COMPRESSION_FORMAT(msaa_format); + VIVS_TS_MEM_CONFIG_COLOR_COMPRESSION_FORMAT(ts_format); } /* Always flush color and depth cache together before resolving. This works |