summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915/i915_clear.c
diff options
context:
space:
mode:
authorStéphane Marchesin <[email protected]>2011-06-22 16:23:02 -0700
committerStéphane Marchesin <[email protected]>2011-06-22 16:44:54 -0700
commit465183c6ae594ad399f72ade027e49adcb1f763b (patch)
tree7e2cda2a4069b3d9cbca3a97aaa3944552836a6f /src/gallium/drivers/i915/i915_clear.c
parent5ff22ab229d40a5ffc6f5e67f58359cdef33e8dc (diff)
i915g: Support more texture and render target formats.
Diffstat (limited to 'src/gallium/drivers/i915/i915_clear.c')
-rw-r--r--src/gallium/drivers/i915/i915_clear.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/i915/i915_clear.c b/src/gallium/drivers/i915/i915_clear.c
index 4a97746e981..fcb208d6dae 100644
--- a/src/gallium/drivers/i915/i915_clear.c
+++ b/src/gallium/drivers/i915/i915_clear.c
@@ -66,7 +66,7 @@ i915_clear_emit(struct pipe_context *pipe, unsigned buffers, const float *rgba,
else
clear_color = (u_color.ui & 0xffff) | (u_color.ui << 16);
- util_pack_color(rgba, PIPE_FORMAT_B8G8R8A8_UNORM, &u_color);
+ util_pack_color(rgba, cbuf->format, &u_color);
clear_color8888 = u_color.ui;
} else
clear_color = clear_color8888 = 0;