summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* mesa: Bump version to 9.1.4Ian Romanick2013-07-013-4/+4
| | | | Signed-off-by: Ian Romanick <[email protected]>
* nvc0: allow frame dropping in h264Maarten Lankhorst2013-07-011-3/+0
| | | | | | | | | The only reason the checks existed were paranoia, when I first wrote the code I wasn't sure it was correct. Now that I am, the asserts triggered when XBMC was dropping frames, so remove it. NOTE: This is a candidate for the 9.1 branch. (cherry picked from commit bf95ca7de0c02a00a75d1d5e2693a33b68ff784d)
* r300g/compiler: Prevent regalloc from swizzling texture operands v2Tom Stellard2013-06-301-0/+8
| | | | | | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=63520 NOTE: This is a candidate for the stable branches. Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Alex Deucher <[email protected]> (cherry picked from commit 24fa43675f32bc81c7252f3ddce4c80ed8c7737d)
* i965: NULL check depth_mt to quiet static analysis.Matt Turner2013-06-291-1/+1
| | | | | Reviewed-by: Chad Versace <[email protected]> (cherry picked from commit adf8afa168fe9fe2e4a2b35afc3003040d05273f)
* intel: Return early if miptree allocation failsChad Versace2013-06-271-0/+3
| | | | | | | | | | | | If allocation fails in intel_miptree_create_internl(), don't proceed to dereference the miptree. Return an early NULL. Fixes static analysis error reported by Klocwork. Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Anuj Phogat <[email protected]> Signed-off-by: Chad Versace <[email protected]> (backport of commit 6b676e66343356d5096260c2bc1601014c808cb0)
* mesa: Fix ieee fp on AlphaSven Joachim2013-06-261-1/+1
| | | | | | | | | | | | Commit 1f82bf12ed inadvertently broke it, checking for __IEEE_FLOAT on all Alpha machines instead of only on VMS as before. NOTE: This is a candidate for the 9.1 branch. Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Andreas Boll <[email protected]> Signed-off-by: Sven Joachim <[email protected]> (cherry picked from commit 0829b893a9e9c874c0ef80d343af49334305e32e)
* intel: Add a null pointer check before dereferencing the pointerAnuj Phogat2013-06-261-0/+9
| | | | | | Reviewed-by: Jordan Justen <[email protected]> Reviewed-by: Matt Turner <[email protected]> (cherry picked from commit 484b89ace99cb34719ff79c6aab1658bb8f3dc79)
* i965: Shut up the last release build warning.Eric Anholt2013-06-261-0/+1
| | | | | | | | I don't see a sensible value to use in this path, but we shouldn't ever hit this outside of developer new-texture-target enabling. Reviewed-by: Matt Turner <[email protected]> (cherry picked from commit 1658efc42cc6a8a32fde222b74f052f4f7b1434a)
* winsys/radeon: add env var to disable VM on Cayman/TrinityAlex Deucher2013-06-261-0/+2
| | | | | | | | | | | | Set env var RADEON_VA=0 to disable VM on Cayman/Trinity. Useful for debugging. Note: this is a candidate for the 9.1 branch. Signed-off-by: Alex Deucher <[email protected]> Reviewed-by: Tom Stellard <[email protected]> Reviewed-by: Marek Olšák <[email protected]> (cherry picked from commit 761320b197ecc87221d070f5e961032ab0b665a4)
* glsl: Bail on parsing if the #version directive is bogus.Kenneth Graunke2013-06-261-0/+6
| | | | | | | | | | | | | | | | | | | | If we didn't successfully parse the #version line, there's no point in continuing with parsing and compiling: it's already failed. Furthermore, it can actually be harmful: right after handling #version, we call _mesa_glsl_initialize_types(), which checks state->es_shader and language_version. If it isn't valid, it hits an assertion failure. Fixes Piglit's "invalid-version-es." When processing "#version 110 es", our code set state->es_shader and state->language_version = 110. It then properly determined that this was invalid and flagged an error. Since we continued anyway, we hit the assertion mentioned above. NOTE: This is a candidate for the 9.1 branch. Reviewed-by: Matt Turner <[email protected]> Signed-off-by: Kenneth Graunke <[email protected]> (cherry picked from commit f730b1f72a13aa1e749beeb50f8e8c5929bf2c45)
* scons: Fix implicit python dependency discovery on Windows.José Fonseca2013-06-261-1/+2
| | | | | | | | | Probably due to CRLF endings, the discovery of python import statements was not working on Windows builds, causing incremental builds to often fail unless one wiped out the build directory. NOTE: This is a candidate for stable branches. (cherry picked from commit 0aca2c6b608b80661cb8fd35eb08195ab95743f5)
* st/xlib: Flush the front buffer before doing CopySubBufferStéphane Marchesin2013-06-261-0/+4
| | | | | | | | | | We flush pending rendering before running CopySubBuffer, which ensures that the right bits get to the screen. NOTE: This is a candidate for stable release branches. Reviewed-by: Brian Paul <[email protected]> (cherry picked from commit 4f905d4900ea962876eb5933dd00d4b251767f71)
* st/xlib: Fix upside down coordinates for CopySubBufferStéphane Marchesin2013-06-261-1/+1
| | | | | | | | | The coordinates need to be inverted between glX and gallium. NOTE: This is a candidate for stable release branches. Reviewed-by: Brian Paul <[email protected]> (cherry picked from commit 4e5416b0e2e0aedbed48acabe31a68fe1b37b61a)
* i965: fix problem with constant out of bounds access (v3)Dave Airlie2013-06-263-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | Okay I now understand why Frank would want to run away, this is my attempt at fixing the CVE out of bounds access to constants outside the range. This attempt converts any illegal constants to constant 0 as per the GL spec, and is undefined behaviour. A future patch should add some debug for users to find this out, but this needs to be backported to stable branches. CVE-2013-1872 v2: drop the last hunk which was a separate fix (now in master). hopefully fix the indentations. v3: don't fail piglit, the whole 8/16 dispatch stuff was over my head, and I spent a while figuring it out, but this one is definitely safe, one piglit pass extra on my Ironlake. NOTE: This is a candidate for stable branches. Signed-off-by: Dave Airlie <[email protected]> (cherry picked from commit 0677ea063cd96adefe87c1fb01ef7c66d905535b)
* i965: Fix glColorPointer(GL_FIXED)Chad Versace2013-06-261-0/+8
| | | | | | | | | | | | | | | | | | | | | | When a gl_client_array is created with glColorPointer, gl_client_array::Normalized is true. This caused the translation from the gl_client_array's type to a BRW_SURFACEFORMAT to assertion fail. Fixes the spinning cube's color in Android 4.2's ApiDemos.apk, "Graphics > OpenGL ES". Fixes assertion failure in mesa-demos/src/egl/opengles1/tri_x11 on Haswell and Ivybridge: brw_draw_upload.c:287: get_surface_type: Assertion `0' failed. No Piglit regressions on Haswell. Note: This is a candidate for the 9.1 branch. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42182 Issue: AXIA-2954 Reviewed-by: Kenneth Graunke <[email protected]> Signed-off-by: Chad Versace <[email protected]> (cherry picked from commit 7a9f4d3e7114ca709658a620644ad897bdda41e7)
* mesa: handle missing read buffer in _mesa_get_color_read_format/type()Brian Paul2013-06-261-30/+48
| | | | | | | | | | | | | We were crashing when GL_READ_BUFFER == GL_NONE. Check for NULL pointers and reorganize the code. The spec doesn't say which error to generate in this situation, but NVIDIA raises GL_INVALID_OPERATION. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=65173 NOTE: This is a candidate for the stable branches. Tested-by: Vedran Rodic <[email protected]> Reviewed-by: José Fonseca <[email protected]> (cherry picked from commit e20a2df4017ab10dd7199936948c6ac809bfacb6)
* meta: move vertex array enables for mipmap generationBrian Paul2013-06-261-2/+2
| | | | | | | | | | | | | | | | | | | Before, on the second call to GenerateMipmap we were enabling two vertex arrays for the current vertex array object, rather than the private generate-mipmap vertex array object. This caused things to blow up elsewhere. This patch moves the array enables into the block where the generate-mipmap vertex array object is created, as we do in the setup_ff_generate_mipmap() function. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=60518 NOTE: This is a candidate for the stable branches. Tested-by: [email protected] Reviewed-by: José Fonseca <[email protected]> Reviewed-by: Ian Romanick <[email protected]> (cherry picked from commit dcc5b6bfb79261779d85325239d75a2e1f3bec37)
* gallivm: fix out-of-bounds access with mirror_clamp_to_edge address modeRoland Scheidegger2013-06-261-6/+7
| | | | | | | | | | | | | | | | | | | | Surprising this bug survived so long, we were missing a clamp (in the linear filtering version). (Valgrind complained a lot about invalid reads with piglit texwrap, I've also seen spurios failures in this test which might have happened due to this. Valgrind probably didn't complain before the alignment reduction in llvmpipe to 4x4 since the test is using tiny textures so the reads were still always well within allocated area.) While here, also do an effective clamp (after half subtraction) of [0,length-0.5] instead of [0, length-1] which saves an instruction (the filtering weight could be different due to this, but only if both texels point to the same max texel so it doesn't matter). (Both changes are borrowed from PIPE_TEX_CLAMP_TO_EDGE case.) Note: This is a candidate for the stable branches. Reviewed-by: Jose Fonseca <[email protected]> (cherry picked from commit 458a9a0f85b93e3520c33dd3b502e26a31f08e4b)
* intel: Fix format handling of blit glBitmap()Eric Anholt2013-06-261-3/+12
| | | | | | | | | | | | Any 32-bit format got ARGB8888 handling (including, say, GL_RG1616), and anything else got 16-bit (including, say, GL_R8), which could potentially hang the GPU by writing out of bounds. NOTE: This is a candidate for the stable branches. Reviewed-and-tested-by: Ian Romanick <[email protected]> Acked-by: Paul Berry <[email protected]> (cherry picked from commit 0a39cb88deee338de3c82db2e70594f11ee1cc8d)
* intel: Fix MRT handling of glBitmap().Eric Anholt2013-06-262-9/+15
| | | | | | | | | | We'd only hit color buffer 0 even if multiple draw buffers were bound. NOTE: This is a candidate for the stable branches. Reviewed-and-tested-by: Ian Romanick <[email protected]> Acked-by: Paul Berry <[email protected]> (cherry picked from commit 1cb8de6fff24743e479e17f023bd3a7b455b756f)
* nvc0: set rsvd_kick correctlyMaarten Lankhorst2013-06-261-0/+1
| | | | | | | | | | This prevents trampling beyond the end of the command stream during flushes. NOTE: This is a candidate for the stable branches. Reported-by: Christoph Bumiller <[email protected]> Signed-off-by: Maarten Lankhorst <[email protected]> (cherry picked from commit e72cc26518d8a60093ac497bf680c1f4ba614fa9)
* xmlpool/build: Make sure to set mo properlyNaohiro Aota2013-06-251-1/+1
| | | | | | | | | | | Some shells does not set variables sequentially in a statement i.e. "a=X b=${a}" won't set "b" to "X" but empty value. This patch introduce ";" to make sure "mo" is set properly before "lang" assignment. Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=471302 (cherry picked from commit 95e145aaee1c535aa4d55b1765c717968efdf18c)
* mesa: declare UniformBufferBindings as an array with a static sizeMarek Olšák2013-06-254-9/+9
| | | | | | | | | Some Gallium drivers were crashing, because the array was not large enough. v2: clamp the per-shader maximum in st/mesa, then sum them all up NOTE: This is a candidate for the stable branches. (cherry picked from commit 15a4b6db2192b0adc05c3dc07cf043316c556f2e)
* xlib: add null ctx check in glXDestroyContext()Brian Paul2013-06-251-10/+12
| | | | | | | | Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64934 NOTE: This is a candidate for the stable branches. Reviewed-by: Jose Fonseca <[email protected]> (cherry picked from commit fd9fe4470be0437c18cbd6d2bc8e568378f88200)
* st/glx: add null ctx check in glXDestroyContext()Brian Paul2013-06-251-10/+12
| | | | | | | | Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64934 NOTE: This is a candidate for the stable branches. Reviewed-by: Jose Fonseca <[email protected]> (cherry picked from commit fd29e4acdae3a667e5b2519aa87ad457decb50c6)
* xlib: check for null ctx pointer in glXIsDirect()Brian Paul2013-06-251-1/+1
| | | | | | | | Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64745 Note: This is a candidate for the stable branches. Reviewed-by: Jose Fonseca <[email protected]> (cherry picked from commit 9772284df2cba1dd30ec401fd19c5a212197b411)
* st/glx/xlib: check for null ctx pointer in glXIsDirect()Brian Paul2013-06-251-3/+1
| | | | | | | | Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64745 Note: This is a candidate for the stable branches. Reviewed-by: Jose Fonseca <[email protected]> (cherry picked from commit 1e9875acbe0a1204e144b12b66b5b0ec55664e2c)
* mesa: Use accessor for stencil reference values in glGetChris Forbes2013-06-252-2/+6
| | | | | | | | | | NOTE: This is a candidate for stable branches. Signed-off-by: Chris Forbes <[email protected]> Reviewed-by: Paul Berry <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Ian Romanick <[email protected]> (cherry picked from commit 96a1bf1ba3b3e556abe2e7303b8b785e93e68985)
* st/mesa: fix a couple of issues in st_bind_ubosMarek Olšák2013-06-251-4/+16
| | | | | | | | | | | | | - don't reference a buffer for a local variable (that's never useful unless it can be the only reference to the buffer) - check if the buffer is not NULL - set buffer_size as specified with BindBufferRange NOTE: This is a candidate for the 9.1 branch. Reviewed-by: Fredrik Höglund <[email protected]> Reviewed-by: Brian Paul <[email protected]> (cherry picked from commit a17e87d4ebd84c1a01c3821c04ed9d8d7c763983)
* st/mesa: initialize Const.MaxColorAttachmentsMarek Olšák2013-06-251-7/+3
| | | | | | | NOTE: This is a candidate for the stable branches. Reviewed-by: Brian Paul <[email protected]> (cherry picked from commit 6a2ad679e6f11f51e01001943f7d18329f077620)
* st/mesa: initialize all program constants and UBO limitsMarek Olšák2013-06-251-21/+43
| | | | | | | | | Also simplify UBO support checking. NOTE: This is a candidate for the 9.1 branch. Reviewed-by: Brian Paul <[email protected]> (cherry picked from commit 614ee25077b7ffafeb87b22563d01856824fb4bc)
* gallivm: Fix build with LLVM 3.3Armin K2013-06-251-1/+3
| | | | | Reviewed-by: Tom Stellard <[email protected]> (cherry picked from commit 4742f9b00b804dd01eb9955dd386a2373cd8eb36)
* gallivm: Fix build with LLVM >= r180063Tom Stellard2013-06-252-0/+8
| | | | (cherry picked from commit ead4db420e9e5408f41c70768a290592a384aedb)
* nvc0: kill assert in ppp codeMaarten Lankhorst2013-06-191-2/+0
| | | | | | | It's no longer always true, and the video tilign aligment should ensure the alignment is handled correctly regardless. (cherry picked from commit f1cccd6ca06580a735e861d668bea20ab7ef4b1f)
* intel: Avoid making tiled miptrees we won't be able to blit.Eric Anholt2013-06-191-14/+21
| | | | | | | | | | | | | | | Doing so was breaking miptree mapping, which we really need to be able to handle. With this change, intel_miptree_map_direct() falls through to doing a CPU mapping on the buffer like we need. With the previous 2 patches, all of these should be fixed: piglit max-texture-size (all 3 patches required!) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=37871 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=44958 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=53494 Reviewed-by: Kenneth Graunke <[email protected]> (cherry picked from commit ca9a7d975af228cabb79c3040ec67f26f94f90a2)
* intel: Do temporary CPU maps of textures that are too big to GTT map.Eric Anholt2013-06-191-0/+21
| | | | | | | | | This still fails, since 8192*4bpp == 32768, which is too big to use the blitter on. Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Daniel Vetter <[email protected]> (cherry picked from commit dfed1150904ce8455126574a3dd5439de541726c)
* intel: Add support for writing to our linear-temporary-CPU-map case.Eric Anholt2013-06-191-2/+23
| | | | | | | | This will be used for handling updates of large textures. Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Chad Versace <[email protected]>. (cherry picked from commit b3a3cb96113f732d387141c7e120f92cba2cdd69)
* u_vbuf: fix index buffer leakChia-I Wu2013-06-131-0/+3
| | | | | | Signed-off-by: Chia-I Wu <[email protected]> Reviewed-by: Marek Olšák <[email protected]> (cherry picked from commit 97d641eb229e48cacc448eefb583381a27bd8af1)
* targets/dri-i915: Force c++ linker in all casesChí-Thanh Christopher Nguyễn2013-06-111-8/+2
| | | | | | | NOTE: This is a candidate for the 9.1 branch. Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=461696 Reviewed-by: Andreas Boll <[email protected]> (cherry picked from commit 121c2c898368ec8de54d230b7db0316695e63a83)
* r600g: Correctly initialize the shader key, v2Lauri Kasanen2013-06-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | Assigning a struct only copies the members - any padding is left as is. Thus this code: struct foo_t foo; foo = bar; leaves the padding of foo intact, ie uninitialized random garbage. This patch fixes constant shader recompiles by initializing the struct to zero. For completeness, memcpy is used to copy the key to the shader struct. NOTE: This is a candidate for the stable branches. Signed-off-by: Lauri Kasanen <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Signed-off-by: Andreas Boll <[email protected]> (cherry picked from commit e495d88453076a4fe552502d66d6a3869ab70e4a)
* nvc0: fix up video buffer alignment requirementsMaarten Lankhorst2013-06-081-5/+3
| | | | Signed-off-by: Maarten Lankhorst <[email protected]>
* configure.ac: Build dricommon for gallium swrastMike Stroyan2013-06-061-0/+1
| | | | | | | | | | | | | | | | When building dri-swrast, use gallium_check_st to set HAVE_COMMON_DRI. Commit 07f2dee7 added setting of HAVE_COMMON_DRI in gallium_check_st. But the dri-swrast case did not use gallium_check_st. So dri/common was still not built. v2: set HAVE_COMMON_DRI=yes instead of using gallium_check_st NOTE: This is a candidate for the 9.1 branch. (Depends on 7de78ce5 and 07f2dee) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=61821 Signed-off-by: Andreas Boll <[email protected]> (cherry picked from commit 962204961def009610e60b23d40a22f064214dc7)
* configure.ac: Build dricommon for DRI gallium driversMatt Turner2013-06-061-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | Commit 67ef7559 added an || test "x$enable_dri" check in an attempt to get the DRI common bits built in some necessary cases. That change was inappropriate as it made these common DRI pieces be built unconditionally, so some builds were broken. Subsequently, commit 998d975e3 change the "|| test" to a "-a" conjunction within the existing test invocation. This made the '-a "x$enable_dri" = xyes' clause have no effect, (as it was inside an enclosing test for the same condition). So the new breakage from commit 67ef7559 was addressed, but the original problems were regressed. The immediately preceding commit removed the redundant condition. Now, finally this commit fixes the original problem as described in the commit message of 67ef7559: this code should be compiled when using the DRI state tracker. In order to do so, the HAVE_*_DRI conditionals must be moved after the last assignment of HAVE_COMMON_DRI. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=61821 Tested-by: Stéphane Marchesin <[email protected]> (cherry picked from commit 07f2dee7319b084e00288d74b29b07b62d888948)
* configure.ac: Remove redundant checks of enable_dri.Matt Turner2013-06-061-18/+16
| | | | | The whole block is enclosed inside if test "x$enable_dri" = xyes. (cherry picked from commit 7de78ce5e5f5dc635846a3d935aaf2f4407e2dfa)
* glapi: Add some missing static_dispatch="false" annotations to es_EXT.xmlAndreas Boll2013-06-061-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the following build errors on powerpc: CC glapi_dispatch.lo In file included from glapi_dispatch.c:90:0: ../../../../../src/mapi/glapi/glapitemp.h:1640:1: error: no previous prototype for 'glReadBufferNV' [-Werror=missing-prototypes] ../../../../../src/mapi/glapi/glapitemp.h:4198:1: error: no previous prototype for 'glDrawBuffersNV' [-Werror=missing-prototypes] ../../../../../src/mapi/glapi/glapitemp.h:6377:1: error: no previous prototype for 'glFlushMappedBufferRangeEXT' [-Werror=missing-prototypes] ../../../../../src/mapi/glapi/glapitemp.h:6389:1: error: no previous prototype for 'glMapBufferRangeEXT' [-Werror=missing-prototypes] ../../../../../src/mapi/glapi/glapitemp.h:6401:1: error: no previous prototype for 'glBindVertexArrayOES' [-Werror=missing-prototypes] ../../../../../src/mapi/glapi/glapitemp.h:6413:1: error: no previous prototype for 'glDeleteVertexArraysOES' [-Werror=missing-prototypes] ../../../../../src/mapi/glapi/glapitemp.h:6433:1: error: no previous prototype for 'glGenVertexArraysOES' [-Werror=missing-prototypes] ../../../../../src/mapi/glapi/glapitemp.h:6445:1: error: no previous prototype for 'glIsVertexArrayOES' [-Werror=missing-prototypes] NOTE: This is a candidate for the 9.0 and 9.1 branches. Reviewed-by: Maarten Lankhorst <[email protected]> Reviewed-by: Brian Paul <[email protected]> (cherry picked from commit 5ea43e65498505fc5d11d63668cda165146eb55b)
* mesa: fix error checking of DXT sRGB formats in _mesa_base_tex_format()Brian Paul2013-06-051-2/+4
| | | | | | | | | | | | | | For formats such as GL_COMPRESSED_SRGB_S3TC_DXT1_EXT we need to have both the GL_EXT_texture_sRGB and GL_EXT_texture_compression_s3tc extensions. This patch adds the missing check for the later. Found when checking out https://bugs.freedesktop.org/show_bug.cgi?id=65173 NOTE: This is a candidate for the stable branches. Reviewed-by: Jose Fonseca <[email protected]> Reviewed-by: Eric Anholt <[email protected]> (cherry picked from commit 51498a3e71ebffb7eac4b0376045bf28c5c76e17)
* intel: initialize fs_visitor::params_remap in constructorFrank Henigman2013-06-051-0/+2
| | | | | | | | | | | | | Set fs_visitor::params_remap to NULL in the constructor. This variable was potentially tested in fs_visitor::remove_dead_constants() before being set. NOTE: This is a candidate for stable release branches. Signed-off-by: Frank Henigman <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Signed-off-by: Dave Airlie <[email protected]> (cherry picked from commit 02fe736cc0e6866daa50aaae1ed7b977522eaf65)
* mesa: Delete the ctx->Array._RestartIndex derived state.Kenneth Graunke2013-06-054-12/+3
| | | | | | | | | | | | | It's incorrect and isn't used any longer. v2: Actually flush vertices/flag _NEW_TRANSFORM on RestartIndex change. NOTE: This is a candidate for the 9.1 branch. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Ian Romanick <[email protected]> (cherry picked from commit e6efb900e7a7601797b2e8263388fe72f6820e9b)
* mesa: Ignore fixed-index primitive restart in ArrayElement().Kenneth Graunke2013-06-051-1/+1
| | | | | | | | | | | | | GL_PRIMITIVE_RESTART_FIXED_INDEX is only supposed to apply to glDrawElements*. This code is for legacy drawing paths and display lists, so it shouldn't apply. NOTE: This is a candidate for the 9.1 branch. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Ian Romanick <[email protected]> (cherry picked from commit 51c0ffacb24d1b4e48f8f53dc8e191b64fbd679a)
* st/mesa: Go back to using ctx->Array.RestartIndex, not _RestartIndex.Kenneth Graunke2013-06-051-1/+1
| | | | | | | | | | | | | | The derived _RestartIndex field is an attempt to support both GL_PRIMITIVE_RESTART and GL_PRIMITIVE_RESTART_FIXED_INDEX (part of ES 3.0). Gallium drivers don't appear to support ES 3.0 yet, so they don't need to use it. Plus, it's broken and going to go away soon. NOTE: This is a candidate for the 9.1 branch. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Ian Romanick <[email protected]> (cherry picked from commit a41478e3f60d0d4c16cc22170866e561fd216834)