summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_pipe.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2015-03-15 17:54:29 +0100
committerMarek Olšák <[email protected]>2015-03-16 12:54:18 +0100
commit4f20a8f278aa92fb0dc6abc6998171b3ddea7dc1 (patch)
tree266ec3ab358ae2286bb239e016b6dc17f30ae0e6 /src/gallium/drivers/radeonsi/si_pipe.c
parentf7796a966d20b04c00025bdc170883f4179a5697 (diff)
radeonsi: split sample locations into its own state atom
Sample locations are not updated as often as framebuffers. Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pipe.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_pipe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
index 993b153d1f4..8b4246cfeff 100644
--- a/src/gallium/drivers/radeonsi/si_pipe.c
+++ b/src/gallium/drivers/radeonsi/si_pipe.c
@@ -112,6 +112,9 @@ static struct pipe_context *si_create_context(struct pipe_screen *screen, void *
sctx->cache_flush = si_atom_cache_flush;
sctx->atoms.s.cache_flush = &sctx->cache_flush;
+ sctx->msaa_sample_locs = si_atom_msaa_sample_locs;
+ sctx->atoms.s.msaa_sample_locs = &sctx->msaa_sample_locs;
+
sctx->msaa_config = si_atom_msaa_config;
sctx->atoms.s.msaa_config = &sctx->msaa_config;