gallium: document that clear color is intentionally always PIPE_FORMAT_A8R8G8B8_UNORM
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 5 Sep 2008 16:10:55 +0000 (10:10 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 5 Sep 2008 16:10:55 +0000 (10:10 -0600)
src/mesa/state_tracker/st_cb_clear.c

index 013b9a9c9cceefeacc881cd8787a73abc95ddead..47ad3c2bc1264d5e56b8c42197ee6521e4e29371 100644 (file)
@@ -414,6 +414,9 @@ clear_color_buffer(GLcontext *ctx, struct gl_renderbuffer *rb)
       /* clear whole buffer w/out masking */
       struct st_renderbuffer *strb = st_renderbuffer(rb);
       uint clearValue;
+      /* NOTE: we always pass the clear color as PIPE_FORMAT_A8R8G8B8_UNORM
+       * at this time!
+       */
       util_pack_color(ctx->Color.ClearColor, PIPE_FORMAT_A8R8G8B8_UNORM, &clearValue);
       ctx->st->pipe->clear(ctx->st->pipe, strb->surface, clearValue);
    }