mesa/src
Bruce Cherniak 80b587ba27 swr: Don't crash when encountering a VBO with stride = 0.
The swr driver uses vertex_buffer->stride to determine the number
of elements in a VBO. A recent change to the state-tracker made it
possible for VBO's with stride=0. This resulted in a divide by zero
crash in the driver. The solution is to use the pre-calculated vertex
element stream_pitch in this case.

This patch fixes the crash in a number of piglit and VTK tests introduced
by 17f776c27b.

There are several VTK tests that still crash and need proper handling of
vertex_buffer_index.  This will come in a follow-on patch.

v2: Correctly update all parameters for VBO constants (stride = 0).
    Also fixes the remaining crashes/regressions that v1 did
    not address, without touching vertex_buffer_index.

Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
2017-06-16 13:45:24 -05:00
..
amd Revert "amd/common: add missing libdrm include path" 2017-06-16 12:41:44 +01:00
compiler glsl: add ir_variable::contains_bindless() 2017-06-14 10:04:36 +02:00
egl egl/display: make platform detection thread-safe 2017-06-16 11:02:06 +01:00
gallium swr: Don't crash when encountering a VBO with stride = 0. 2017-06-16 13:45:24 -05:00
gbm gbm: implement FD import with modifier 2017-06-15 10:43:36 +01:00
getopt
glx dri: Optionally turn off a couple of GLX extensions based on driconf options 2017-06-07 19:43:54 +02:00
gtest gtest: Update to 1.8.0. 2017-01-20 11:40:52 -08:00
hgl glapi/hgl: remove the final user of _glapi_check_table() 2016-10-06 15:03:46 +01:00
intel intel/isl: Add the maximum surface size limit 2017-06-16 09:05:05 -07:00
loader loader: build libloader_dri3_helper.la only with HAVE_PLATFORM_X11 2017-05-19 19:44:22 +01:00
mapi Fix khrplatform.h not installed if EGL is disabled. 2017-06-14 16:55:13 +01:00
mesa i965: Mark freshly allocate bo as idle 2017-06-16 16:20:28 +01:00
util mesa/util: add a hash table wrapper which support 64-bit keys 2017-06-14 10:04:35 +02:00
vulkan Android: vulkan: fix build error due to extra ) 2017-06-08 07:26:04 -05:00
Makefile.am automake: increase the MESA_GIT_SHA1 hash id length from 7 to 10 digits 2017-06-15 13:53:00 -06:00
SConscript