[Mesa-dev] [PATCH 19/19] mesa/tests: Sanity check the ES2 dispatch table
Oliver McFadden
oliver.mcfadden at linux.intel.com
Mon Oct 1 17:07:27 PDT 2012
On Fri, Sep 28, 2012 at 02:15:18PM -0700, Ian Romanick wrote:
> On 09/28/2012 01:55 PM, Paul Berry wrote:
> > On 5 September 2012 15:09, Ian Romanick <idr at freedesktop.org
> > <mailto:idr at freedesktop.org>> wrote:
> >
> > From: Ian Romanick <ian.d.romanick at intel.com
> > <mailto:ian.d.romanick at intel.com>>
> >
> > This test is only built when shared-glapi is used. Because of changes
> > elsewhere in the tree that were necessary to make shared-glapi work
> > correct with GLX, it's not feasible to make the test function both ways.
> >
> > Signed-off-by: Ian Romanick <ian.d.romanick at intel.com
> > <mailto:ian.d.romanick at intel.com>>
> >
> >
> > This test is failing on my system when I run "make check":
> >
> > [----------] 1 test from DispatchSanity_test
> > [ RUN ] DispatchSanity_test.GLES2
> > Mesa warning: couldn't open libtxc_dxtn.so, software DXTn
> > compression/decompression unavailable
> > dispatch_sanity.cpp:122: Failure
> > Value of: table[i]
> > Actual: 0x4de54e
> > Expected: (_glapi_proc) _mesa_generic_nop
> > Which is: 0x41af72
> > i = 321
> > [ FAILED ] DispatchSanity_test.GLES2 (4 ms)
> > [----------] 1 test from DispatchSanity_test (4 ms total)
> >
> > Is anybody else getting this problem?
>
> Can you put the following in the SET_by_offset macro
> (src/mesa/main/dispatch.h in your build directory):
>
> if (offset == 321) abort(); \
>
> then backtrace to see what API function is at fault?
[----------] 1 test from DispatchSanity_test
[ RUN ] DispatchSanity_test.GLES2
[SET_VertexPointer:5719] SET_by_offset(0x1aa7960, 321, fn)!
/bin/sh: line 5: 8122 Aborted ${dir}$tst
FAIL: main-test
If it helps... I didn't actually run this in GDB, just added the
printf()/abort() debugging which was already there but commented out.
>
> > Here's how I have Mesa configured:
> >
> > ./autogen.sh \
> > --with-gallium-drivers= \
> > --enable-gles1 \
> > --disable-glut \
> > --enable-debug \
> > --enable-egl \
> > --enable-gles2 \
> > --enable-texture-float \
> > --enable-glx-tls \
> > --enable-shared-glapi \
> > "--prefix=$PLATFORM_INSTALL_DIR" \
> > --with-dri-drivers=swrast,i915,i965 \
> > CFLAGS="-O0 $CFLAGS" \
> > CXXFLAGS="-O0 $CXXFLAGS"
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
--
Oliver McFadden.
More information about the mesa-dev
mailing list