mesa/src
Roland Scheidegger 09828feab0 draw: force draw pipeline if there's more than 65535 vertices
The pt emit path can only handle 65535 - the number of vertices is
truncated to a ushort, resulting in a too small buffer allocation, which
will crash.

Forcing the pipeline path looks suboptimal, then again this bug is
probably there ever since GS is supported, so it seems it's not
happening often. (Note that the vertex_id in the vertex header is 16
bit too, however this is only used by the draw pipeline, and it denotes
the emit vertex nr, and that uses vbuf code, which will only emit smaller
chunks, so should be fine I think.)
Other solutions would be to simply allow 32bit counts for vertex
allocation, however 65535 is already larger than this was intended for
(the idea being it should be more cache friendly). Or could try to teach
the pt emit path to split the emit in smaller chunks (only the non-index
path can be affected, since gs output is always linear), but it's a bit
tricky (we don't know the primitive boundaries up-front).

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=107295

Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2018-07-23 22:07:07 +02:00
..
amd radv: print a big warning when RADV_TRACE_FILE is set 2018-07-23 11:34:42 +02:00
broadcom v3d: Implement a small immediates optimization, based on VC4's. 2018-07-23 10:21:43 -07:00
compiler nir: Add a couple trivial abs optimizations 2018-07-23 10:48:21 -07:00
egl egl: Refuse EGL_MESA_image_dma_buf_export if we don't have a DRM fourcc. 2018-07-20 11:26:12 -07:00
gallium draw: force draw pipeline if there's more than 65535 vertices 2018-07-23 22:07:07 +02:00
gbm meson: Remove various completed todos 2018-06-13 10:07:03 -07:00
getopt
glx glx: Don't allow glXMakeContextCurrent() with only one valid drawable 2018-07-09 12:03:18 -04:00
gtest
hgl
intel anv: remove unnecessary runtime copy of static string 2018-07-23 17:56:08 +01:00
loader
mapi Allow AMD_perfmon on GLES contexts 2018-07-18 10:39:21 -07:00
mesa st: Sweep NIR after linking phase to free held memory 2018-07-20 11:26:12 -07:00
util util/disk_cache: Fix disk_cache_get_function_timestamp with disabled cache. 2018-07-20 12:09:19 +02:00
vulkan anv,radv: Add support for VK_KHR_get_display_properties2 2018-07-09 17:09:41 -07:00
git_sha1.h.in
Makefile.am
meson.build
SConscript