diff options
author | Jonathan Marek <[email protected]> | 2019-07-01 16:29:40 -0400 |
---|---|---|
committer | Jonathan Marek <[email protected]> | 2019-07-04 14:05:18 -0400 |
commit | 84c87f40fbd4733d59bd8ff218d0ab82730b5160 (patch) | |
tree | dcb8d227e24be57cd0ed641559172178da6acfc0 /src/gallium/drivers/etnaviv/etnaviv_state.c | |
parent | 53475c85fd9d674e99c2793d75ab8c51eebe9a9f (diff) |
etnaviv: fix compression format not set correctly in TS_MEM_CONFIG
VIVS_TS_MEM_CONFIG_COLOR_COMPRESSION_FORMAT() needs to be used.
Signed-off-by: Jonathan Marek <[email protected]>
Reviewed-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_state.c')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_state.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_state.c b/src/gallium/drivers/etnaviv/etnaviv_state.c index a63350993fe..f2460be834e 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_state.c +++ b/src/gallium/drivers/etnaviv/etnaviv_state.c @@ -179,9 +179,11 @@ etna_set_framebuffer_state(struct pipe_context *pctx, } /* MSAA */ - if (cbuf->base.texture->nr_samples > 1) + if (cbuf->base.texture->nr_samples > 1) { ts_mem_config |= - VIVS_TS_MEM_CONFIG_COLOR_COMPRESSION | translate_msaa_format(cbuf->base.format); + VIVS_TS_MEM_CONFIG_COLOR_COMPRESSION | + VIVS_TS_MEM_CONFIG_COLOR_COMPRESSION_FORMAT(translate_msaa_format(cbuf->base.format)); + } nr_samples_color = cbuf->base.texture->nr_samples; } else { |