summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast
diff options
context:
space:
mode:
authorNanley Chery <nanley.g.chery@intel.com>2015-07-31 10:26:36 -0700
committerNanley Chery <nanley.g.chery@intel.com>2015-08-25 15:45:17 -0700
commit26c549e69d12e44e2e36c09764ce2cceab262a1b (patch)
tree69e2747d06eec40a982d0c91d83b44e9f61b5911 /src/mesa/swrast
parent8e581747d2342950ff44488064eef53768b3ae82 (diff)
downloadexternal_mesa3d-26c549e69d12e44e2e36c09764ce2cceab262a1b.zip
external_mesa3d-26c549e69d12e44e2e36c09764ce2cceab262a1b.tar.gz
external_mesa3d-26c549e69d12e44e2e36c09764ce2cceab262a1b.tar.bz2
mesa/formats: remove compressed formats from matching function
All compressed formats return GL_FALSE and there isn't any evidence to support that this behaviour would change. Remove all switch cases for compressed formats. v2. Since the exhaustive switch is removed, add a gtest to ensure all formats are handled. v3. Ensure that GL_NO_ERROR is set before returning. v4. Fix an arg to _mesa_uncompressed_format_to_type_and_comps(); fix formatting and misc improvements (Chad). Reviewed-by: Chad Versace <chad.versace@intel.com> Signed-off-by: Nanley Chery <nanley.g.chery@intel.com>
Diffstat (limited to 'src/mesa/swrast')
-rw-r--r--src/mesa/swrast/s_drawpix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_drawpix.c b/src/mesa/swrast/s_drawpix.c
index dc6827e..5393d50 100644
--- a/src/mesa/swrast/s_drawpix.c
+++ b/src/mesa/swrast/s_drawpix.c
@@ -242,7 +242,7 @@ fast_draw_rgba_pixels(struct gl_context *ctx, GLint x, GLint y,
}
if (_mesa_format_matches_format_and_type(rb->Format, format, type,
- ctx->Unpack.SwapBytes)) {
+ ctx->Unpack.SwapBytes, NULL)) {
fast_draw_generic_pixels(ctx, rb, x, y, width, height,
format, type, &unpack, pixels);
return GL_TRUE;