radeonsi: convert the framebuffer state to atom-based
authorMarek Olšák <marek.olsak@amd.com>
Wed, 5 Mar 2014 23:28:14 +0000 (00:28 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 11 Mar 2014 17:51:20 +0000 (18:51 +0100)
commit61a2fac1996c92c9bfa486723803f9f346c9c9f6
tree036301cb3c14b10b7024a4dc07bf4e3558a04b83
parent946d1cfe3948ca18225313b69a6d3f30b949a84b
radeonsi: convert the framebuffer state to atom-based

This looks like r600g. The shared Cayman MSAA code is used here.

The real motivation for this is that I need the ability to change values
of color registers after the framebuffer state is set. The PM4 state cannot
be modified easily after it's generated. With this, I can just change
r600_surface::cb_color_xxx and set framebuffer.atom.dirty=true and it's done.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/si_hw_context.c
src/gallium/drivers/radeonsi/si_pipe.h
src/gallium/drivers/radeonsi/si_state.c
src/gallium/drivers/radeonsi/si_state.h
src/gallium/drivers/radeonsi/sid.h