diff options
author | Paul Berry <[email protected]> | 2013-05-06 10:37:04 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-06-12 11:10:07 -0700 |
commit | 418aecea7d626d57da8987c062aeb3d046c6dd9a (patch) | |
tree | 99a4b539c9e8763f3fa86203c930e372c5daf98f /scons | |
parent | fac32c0bd31601c37f3aa01d69b655e0f75bbdef (diff) |
i965/blorp: Write blorp code to do render target resolves.
This patch implements the "render target resolve" blorp operation.
This will be needed when a buffer that has experienced a fast color
clear is later used for a purpose other than as a render target
(texturing, glReadPixels, or swapped to the screen). It resolves any
remaining deferred clear operation that was not taken care of during
normal rendering.
Fortunately not much work is necessary; all we need to do is scale
down the size of the rectangle primitive being emitted, run the
fragment shader with the "Render Target Resolve Enable" bit set, and
ensure that the fragment shader writes to the render target using the
"replicated color" message. We already have a fragment shader that
does that (the shader that we use for fast color clears), so for
simplicity we re-use it.
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'scons')
0 files changed, 0 insertions, 0 deletions