st/mesa: add support for layered framebuffers and consolidate code
authorMarek Olšák <marek.olsak@amd.com>
Thu, 21 Nov 2013 14:31:32 +0000 (15:31 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 3 Dec 2013 18:39:13 +0000 (19:39 +0100)
commitd8d67d2e1f809ca62c99aab1db78429e2c9d9691
tree37ffd55924744de4a10de8fbb61f896fa1ffc9af
parent0b3b901cff24392e7bceb17546db2754331d8429
st/mesa: add support for layered framebuffers and consolidate code

This is a subset of geometry shaders. It's all about setting first_layer and
last_layer correctly.

Also some code between st_render_texture and update_framebuffer_state is
consolidated. It doesn't use rtt_level and derives the level from dimensions
instead as the code in st_atom_framebuffer.c did.
src/mesa/state_tracker/st_atom_framebuffer.c
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/state_tracker/st_cb_fbo.h
src/mesa/state_tracker/st_cb_readpixels.c
src/mesa/state_tracker/st_cb_texture.c