Mesa (master): st/vega: vegaLookupSingle should validate the state.

Chia-I Wu olv at kemper.freedesktop.org
Sun Nov 21 11:32:43 UTC 2010


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

Author: Chia-I Wu <olv at lunarg.com>
Date:   Sun Nov 21 18:44:21 2010 +0800

st/vega: vegaLookupSingle should validate the state.

Fix "lookup" demo crash.

---

 src/gallium/state_trackers/vega/api_filters.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gallium/state_trackers/vega/api_filters.c b/src/gallium/state_trackers/vega/api_filters.c
index 4bd5d7e..fa1e00d 100644
--- a/src/gallium/state_trackers/vega/api_filters.c
+++ b/src/gallium/state_trackers/vega/api_filters.c
@@ -796,6 +796,8 @@ void vegaLookupSingle(VGImage dst, VGImage src,
       return;
    }
 
+   vg_validate_state(ctx);
+
    for (i = 0; i < 256; ++i) {
       VGuint rgba = lookupTable[i];
       VGubyte blue, green, red, alpha;




More information about the mesa-commit mailing list