summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr
diff options
context:
space:
mode:
authorEric Engestrom <eric@engestrom.ch>2016-10-12 22:13:29 +0100
committerTim Rowley <timothy.o.rowley@intel.com>2016-10-13 21:37:20 -0500
commit827e038062bb7247a7b59b8f97d07b4c1b7be276 (patch)
tree4bd322b272626e625a92cc82e558674b08ce764e /src/gallium/drivers/swr
parent5f885225cf90aa58b2900355658441bda618e9b1 (diff)
downloadexternal_mesa3d-827e038062bb7247a7b59b8f97d07b4c1b7be276.zip
external_mesa3d-827e038062bb7247a7b59b8f97d07b4c1b7be276.tar.gz
external_mesa3d-827e038062bb7247a7b59b8f97d07b4c1b7be276.tar.bz2
swr: [rasterizer common] fix assert index
Fixes: b3bd8bb611bb465d2e5e ("swr: [rasterizer core] add support for "RAW" surface format") CovID: 1373647 Signed-off-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
Diffstat (limited to 'src/gallium/drivers/swr')
-rw-r--r--src/gallium/drivers/swr/rasterizer/common/formats.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/common/formats.h b/src/gallium/drivers/swr/rasterizer/common/formats.h
index 539e37a..dd5b499 100644
--- a/src/gallium/drivers/swr/rasterizer/common/formats.h
+++ b/src/gallium/drivers/swr/rasterizer/common/formats.h
@@ -248,7 +248,7 @@ extern const SWR_FORMAT_INFO gFormatInfo[NUM_SWR_FORMATS];
/// @param format - SWR format
INLINE const SWR_FORMAT_INFO& GetFormatInfo(SWR_FORMAT format)
{
- SWR_ASSERT(format <= NUM_SWR_FORMATS, "Invalid Surface Format: %d", format);
+ SWR_ASSERT(format < NUM_SWR_FORMATS, "Invalid Surface Format: %d", format);
SWR_ASSERT(gFormatInfo[format].name != nullptr, "Invalid Surface Format: %d", format);
return gFormatInfo[format];
}