From: Brian Paul Date: Fri, 5 Sep 2008 16:10:55 +0000 (-0600) Subject: gallium: document that clear color is intentionally always PIPE_FORMAT_A8R8G8B8_UNORM X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=79200c908790238374c6059b9f781c9873584d95;p=mesa.git gallium: document that clear color is intentionally always PIPE_FORMAT_A8R8G8B8_UNORM --- diff --git a/src/mesa/state_tracker/st_cb_clear.c b/src/mesa/state_tracker/st_cb_clear.c index 013b9a9c9cc..47ad3c2bc12 100644 --- a/src/mesa/state_tracker/st_cb_clear.c +++ b/src/mesa/state_tracker/st_cb_clear.c @@ -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); }