st/mesa: add new driver function DrawBufferAllocate
authorTimothy Arceri <tarceri@itsqueeze.com>
Tue, 24 Apr 2018 04:19:48 +0000 (14:19 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 24 Apr 2018 23:08:26 +0000 (09:08 +1000)
commit6ca09f3a608c10f6d2a9f80d2497ac1628188ac9
tree598e55a1671070088eb099cb893b9db5a498248a
parent2554b8cb006d5466736333ab7b75aa34501278bb
st/mesa: add new driver function DrawBufferAllocate

Unlike some of the classic drivers the st was only using DrawBuffer()
to allocated some buffers on-demand. Creating a separate function
will allow us to call it from update_framebuffer() in the following
patch without regressing some of the older classic drivers.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/buffers.c
src/mesa/main/dd.h
src/mesa/state_tracker/st_cb_fbo.c