diff options
author | Eric Anholt <eric@anholt.net> | 2011-04-20 17:55:54 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2011-04-23 13:21:58 -0700 |
commit | e4da46e007de5c83202976a12efb0e894494a354 (patch) | |
tree | ccd3003887c40edf44efa26330d345795d1fa498 | |
parent | d7f4c4e1b187552ede397f00fb56a6f0bb724ce1 (diff) |
mesa: Add some comments about FRAG_RESULT_COLOR vs FRAG_RESULT_DATAn.
This came from reading what swrast does, and 965 now behaves the same
and gallium appears to as well.
-rw-r--r-- | src/mesa/main/mtypes.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 160ae9d2622..e90941d3570 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -376,7 +376,15 @@ typedef enum { FRAG_RESULT_DEPTH = 0, FRAG_RESULT_STENCIL = 1, + /* If a single color should be written to all render targets, this + * register is written. No FRAG_RESULT_DATAn will be written. + */ FRAG_RESULT_COLOR = 2, + + /* FRAG_RESULT_DATAn are the per-render-target (GLSL gl_FragData[n] + * or ARB_fragment_program fragment.color[n]) color results. If + * any are written, FRAG_RESULT_COLOR will not be written. + */ FRAG_RESULT_DATA0 = 3, FRAG_RESULT_MAX = (FRAG_RESULT_DATA0 + MAX_DRAW_BUFFERS) } gl_frag_result; |