Module: Mesa
Branch: master
Commit: 827e038062bb7247a7b59b8f97d07b4c1b7be276
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=827e038062bb7247a7b59b8f97d07b4c1b7be276

Author: Eric Engestrom <e...@engestrom.ch>
Date:   Wed Oct 12 22:13:29 2016 +0100

swr: [rasterizer common] fix assert index

Fixes: b3bd8bb611bb465d2e5e ("swr: [rasterizer core] add support
       for "RAW" surface format")
CovID: 1373647
Signed-off-by: Eric Engestrom <e...@engestrom.ch>
Reviewed-by: Tim Rowley <timothy.o.row...@intel.com>

---

 src/gallium/drivers/swr/rasterizer/common/formats.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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];
 }

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to