OSDN Git Service

mesa: Pure software accum buffer.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 10 Jun 2009 14:39:02 +0000 (15:39 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 10 Jun 2009 14:39:02 +0000 (15:39 +0100)
commit52411a1951da10bebc439a30c02c7ca99bc27c9c
tree6c1ba05f3e77370867907dc901bb30f72a19e6cc
parent8bfbb7ec8b978d4b56ad6be7dca0290a96e91e6a
mesa: Pure software accum buffer.

The existing implementation was already implemented on software, but relied
on the pipe driver to always support the R16G16B16A16_SNORM format. This
patch eliminates that, without prejudice against a future hardware-only
implementation.

It also avoids some of the short <-> float conversions, and only does a read
transfer of the color buffer on GL_RETURN if absolutely necessary.
src/mesa/state_tracker/st_cb_accum.c
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/state_tracker/st_cb_fbo.h
src/mesa/state_tracker/st_framebuffer.c