summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-03-19mesa: Bump version to 9.1.1mesa-9.1.1Ian Romanick3-4/+4
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2013-03-19docs: 9.1.1 release notesIan Romanick1-0/+232
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2013-03-18r600g: Use blitter rather than DMA for 128bpp on cayman (v3)Alex Deucher1-0/+11
On cayman, 128bpp surfaces require non_disp ordering for hw access to both linear and tiled surfaces. When we use the 3D engine we can set the non_disp ordering on both the tiled and linear sides (via CB or texture), but when we use the DMA engine, we can only set the non_disp ordering on the tiled side, so after a L2T operation with the DMA engine, the data ends up in the wrong order on the tiled side. v2: cayman/TN only v3: fix comments Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=60802 Note: this is a candidate for the 9.1 branch. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 4409758a046a47b09cdd339f97afd22107c68f0c)
2013-03-18r600g: add Richland APU pci idsAlex Deucher1-0/+11
Note: this is a candidate for the stable branches. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 03eef7f8ef98f1008a8687bbd7ee0141b433887a)
2013-03-15scons: Warn when using MSVS versions prior to 2012.José Fonseca1-0/+2
Reviewed-by: Brian Paul <brianp@vmware.com>
2013-03-15scons: Define _ALLOW_KEYWORD_MACROS on MSVC builds.José Fonseca1-0/+1
scons/llvm.py defines inline globally to workaround issues with LLVM C binding headers, so the only way to is to avoid aggravating xkeycheck.h errors is to set _ALLOW_KEYWORD_MACROS. This fixes MSVC 2012 build with LLVM. Reviewed-by: Brian Paul <brianp@vmware.com>
2013-03-15scons: Allows choosing VS 10 or 11.José Fonseca1-1/+1
NOTE: Candidate for the stable branches. Reviewed-by: Brian Paul <brianp@vmware.com>
2013-03-15radeonsi: Fix off-by-one for maximum vertex element index in some casesMichel Dänzer1-2/+8
In cases where the vertex element size is smaller than the vertex buffer stride, the previous calculation could end up 1 too low. This would result in the GPU using index 0 instead of the maximum index for those elements, which would be visible as intermittent distorted triangles. NOTE: This is a candidate for the 9.1 branch. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 4dca602521c51a4cb03855bda9c22b5ccc4829c7)
2013-03-08i965: Link i965_dri.so with C++ linker.Frank Henigman1-0/+1
Force C++ linking of i965_dri.so by adding a dummy C++ source file. Reviewed-by: Matt Turner <mattst88@gmail.com>
2013-03-08mesa: Allow ETC2/EAC formats with ARB_ES3_compatibility.Matt Turner2-2/+2
Fixes piglit's oes_compressed_etc2_texture-miptree tests on Desktop GL. Reported-by: Marek Olšák <maraeo@gmail.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
2013-03-05r600g: pad the DMA CS to a multiple of 8 dwordsMarek Olšák1-2/+14
Tested-by: Andreas Boll <andreas.boll.dev@gmail.com> NOTE: This is a candidate for the 9.1 branch. (cherry picked from commit c77917d35fdf64d9f194fbecc4748213621eefc8)
2013-03-05r600g: Check comp_mask before merging export instructionsVincent Lejeune1-0/+1
Fixes a llvm uncovered (rare) bug where consecutive exports were merged even if they have incompatible mask. (cherry picked from commit 83e7d111afd8d340ce8fe13ea139271400eb362e)
2013-03-05r600g: fix check_and_set_bank_swizzle for caymanVadim Girlin1-7/+3
Tested-by: Vincent Lejeune <vljn at ovi.com> Reviewed-by: Vincent Lejeune <vljn at ovi.com> (cherry picked from commit 138b5b9a12b7e1537494aac556589ac9981b557b)
2013-03-05i965: Fix Crystal Well PCI IDs.Kenneth Graunke2-18/+18
The second digit was off by one, which meant we accidentally treated GTn as GT(n-1). This also meant no support for GT1 at all. NOTE: This is a candidate for stable branches. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> (cherry picked from commit b88f74d63dca9db0f1b1cb9ce4d85f706c7a7fab)
2013-03-05svga: always link with C++Brian Paul1-5/+1
Even when we don't have LLVM since there's other C++ code in the resulting DRI driver object. Note: This is a candidate for the stable branches. Reviewed-by: Matt Turner <mattst88@gmail.com> (cherry picked from commit a99eb5c83fd64d64fee2b6d7f2bb3fea3264ce47)
2013-03-05r600g: always map uninitialized buffer range as unsynchronizedMarek Olšák6-0/+45
Any driver can implement this simple and efficient optimization. Team Fortress 2 hits it always. The DISCARD_RANGE codepath is not even used with TF2 anymore, so we avoid a ton of useless buffer copies. Tested-by: Andreas Boll <andreas.boll.dev@gmail.com> NOTE: This is a candidate for the 9.1 branch. (cherry picked from commit 89e2898e9ecfcf93c337b99542b06892a8e30cbe)
2013-03-05gallium/util: add helper code for 1D integer rangeMarek Olšák1-0/+89
Reviewed-by: Brian Paul <brianp@vmware.com> v2: cosmetic changes based on Brian's review Tested-by: Andreas Boll <andreas.boll.dev@gmail.com> NOTE: This is a candidate for the 9.1 branch. (the next patch depends on it) (cherry picked from commit 44f37261fc34763003314245a811cfd21ce6fc87)
2013-03-05r600g: flush and invalidate htile cache when appropriateMarek Olšák6-1/+21
Tested-by: Andreas Boll <andreas.boll.dev@gmail.com> NOTE: This is a candidate for the 9.1 branch. (cherry picked from commit e5a250fdf9487bae8d88fd7362ddb86e35978f1e)
2013-03-05r600g: use async DMA with a non-zero src offsetMarek Olšák1-1/+1
probably a typo Tested-by: Andreas Boll <andreas.boll.dev@gmail.com> NOTE: This is a candidate for the 9.1 branch. (cherry picked from commit 9dd18f43a4db73be73dfbf2e9950ae4dfaf6322e)
2013-03-05attrib: push/pop FRAGMENT_PROGRAM_ARB stateJordan Justen1-0/+12
This requirement was added by ARB_fragment_program When the Steam overlay is enabled, this fixes: * Menu corruption with the Puddle game * The screen going black on Rochard when the Steam overlay is accessed NOTE: This is a candidate for the 9.0 and 9.1 branches. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> (cherry picked from commit 6f1538f8b4b253ba7aa92c98997719ce3ca59451)
2013-03-05scons: Fix Windows build with LLVM 3.2Keith Kriewall1-1/+13
Fixes fdo bug 61299 NOTE: This is a candidate for the stable branches. Signed-off-by: José Fonseca <jfonseca@vmware.com> (cherry picked from commit efd8311a54a945953d5372dded0d6f88349bf58b)
2013-03-05autotools: oprofilejit should be included in the list of LLVM components ↵Adam Sampson1-0/+3
required NOTE: This is a candidate for the stable branch. Signed-off-by: José Fonseca <jfonseca@vmware.com> (cherry picked from commit 2506b035031d6022fec0465bffac8eedd43de0f9)
2013-03-05egl: Allow 24-bit visuals for 32-bit RGBA8888 configsIan Romanick1-1/+8
Previously only the 32-bit X visual would match the 32-bit RGBA8888 configs. This resulted in every config with alpha getting the "magic" visual whose alpha is used by the compositor. This also resulted in no multisample visuals being advertised. How many ways could we lose? This patch inverts the problem... now you can't get the visual with alpha used by the compositor even if you want it. I think we need to invent a new value for EGL_TRANSPARENT_TYPE that apps can use to get this. I'm surprised that there isn't already a choice for EGL_TRANSPARENT_ALPHA. NOTE: This is a candidate for the 9.1 branch. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Tested-by: Tian Ye <yex.tian@intel.com> Acked-by: Kristian Høgsberg <krh@bitplanet.net> Reviewed-by: Chad Versace <chad.versace@linux.intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59783 (cherry picked from commit 68a147e9a9e8f171d9aacdc7d78d2107009c4741)
2013-03-05i965: Fix the W value of deprecated pointcoords on pre-gen6.Eric Anholt1-1/+18
When you didn't have a texcoord array bound (or a non-1 current w attrib), we were telling the fragment shader that it could just use "1" instead of doing expensive pre-gen6 math to invert it. If you drew the point with a non-1 W value, then you'd get the right size (since all the vertex computations worked), but we'd mis-interpolate the coordinate across the face. Fixes the mesa pointsprite demo on GM45. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=30232 Reviewed-and-tested-by: Ian Romanick <ian.d.romanick@intel.com> Note: This is a candidate for the stable branches. (cherry picked from commit 50a5d5dea0c21886bc3445c0ad0928b03e64ab10)
2013-03-05mesa/es: NULL check in EGLImageTargetTexture2DOESTapani Pälli1-0/+6
check that pointer passed is valid and return error if not. Note: This is a candidate for the stable branches. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com> (cherry picked from commit 3cdb548bfbc77522ed4e956f7457c8339182ff8c)
2013-03-05mesa: add missing case in _mesa_GetTexParameterfv()Tapani Pälli1-0/+6
missing case GL_REQUIRED_TEXTURE_IMAGE_UNITS_OES is required by OES_EGL_image_external extension. Note: This is a candidate for the stable branches. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com> (cherry picked from commit 331967c7733c1146bd6b3a11908d9fdd6b213d72)
2013-03-05llvmpipe: Fix creation of shared and scanout textures.John Kåre Alsaker1-1/+3
NOTE: This is a candidate for the stable branches. Signed-off-by: José Fonseca <jfonseca@vmware.com> (cherry picked from commit 65aa1a194d703664d2f68e2e6fd69029298ae25a)
2013-03-05llvmpipe: add missing checks for polygon offset point/line modesBrian Paul1-0/+6
The llvm pipeline handles regular filled triangle offsets, but it doesn't handle offsets for triangles drawn in point or line mode. Fixes failures found with new piglit polygon-mode-offset test. Note: This is a candidate for the stable branches. Reviewed-by: Jose Fonseca <jfonseca@vmware.com> (cherry picked from commit f93c5800637fd0967d53a4bc2b652d5f93d17d5d)
2013-03-05draw: fix broken polygon offset stageBrian Paul1-3/+37
There were several issues. We weren't handling different front/back polygon fill modes. We weren't checking whether the offset applied to fill mode vs. line mode vs. point mode. Fixes problems found with the Visualization Toolkit (VTK) test suite. Note: This is a candidate for the stable branches. Reviewed-by: Jose Fonseca <jfonseca@vmware.com> (cherry picked from commit d6b8b116eec3c24ef9f2d292315f70ea8cbaa040)
2013-03-05st/mesa: fix polygon offset state translation logicBrian Paul1-7/+3
The old logic was kind of twisted, but seemed to work in practice. Note: This is a candidate for the stable branches. Reviewed-by: José Fonseca <jfonseca@vmware.com> (cherry picked from commit a2c105e31e47779ce1ddd80c62fc436292e40436)
2013-03-05st/mesa: check for dummy programs in destroy_program_variants()Brian Paul1-1/+1
When we destroy an ARB vp/fp whose ID was gen'd but not otherwise used we get a pointer to the dummy/placeholder program. We can't destroy that one so just skip it. This only failed during context tear-down because glDeleteProgramsARB() was already aware of dummy programs. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=38086 Note: This is a candidate for the stable branches. Tested-by: Andreas Boll <andreas.boll.dev@gmail.com> (cherry picked from commit 8bb291b0f59e8e13bc252cb35672eb468e53881a)
2013-03-05st/mesa: fix trimming of GL_QUAD_STRIPBrian Paul1-1/+1
We sometimes convert GL_QUAD_STRIP prims into GL_TRIANGLE_STRIP, but that changes the results of the u_trim_pipe_prim() call. We need to pass the original primitive type to the trim function. Note that OpenGL's GL_x prim type values match Gallium's PIPE_PRIM_x values. Fixes a failure in the new piglit degenerate-prims test. Note: This is a candidate for the stable branches. Reviewed-by: José Fonseca <jfonseca@vmware.com> (cherry picked from commit 8589cc41b36b89bc80ad6a4f671e47f81a89d556)
2013-03-05meta: Allocate texture before initializing texture coordinatesAnuj Phogat1-9/+8
tex->Sright and tex->Ttop are initialized during texture allocation. This fixes depth buffer blitting failures in khronos conformance tests when run on desktop GL 3.0. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=59495 Note: This is a candidate for stable branches. Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com> (cherry picked from commit cff862f90dbcf32395b0b2940c2446959314538a)
2013-03-05mesa: Fix setup of ctx->Point.PointSprite for GLES2.Eric Anholt2-2/+2
The recent change for GL core broke the older setup, which broke gl_PointCoord on pre-gen6 (where gl_PointCoord is undefined if point sprites are disabled). Fixes the new piglit GLES-2.0/glsl-fs-pointcoord test. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=32429 Note: This is a candidate for the stable branches. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (cherry picked from commit 92a204b493b447b1cbb06a3d2d350a1e6d2c6887)
2013-03-05i965/fs: Fix broken math on values loaded from uniform buffers on gen6.Eric Anholt1-0/+1
In a debug build this led to assertion failures, but on a non-debug build the hardware would just reference the whole vec8 instead of the same channel 8 times. Fixes the new piglit glsl-1.40/uniform-buffer/fs-exp2. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=57121 Note: This is a candidate for the stable branches Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (cherry picked from commit 7b0731d940c758ca9c1e883cdea454d8787255c1)
2013-03-05r600g/Cayman: Fix blending using destination alpha factor but non-alpha destMichel Dänzer1-4/+9
Only compile tested, but should fix at least some piglit fbo-blending tests. NOTE: This is a candidate for the stable branches. Reviewed-by: Marek Olšák <maraeo@gmail.com> (cherry picked from commit 73bf626713f7efc43164f7649fc143f4a94299cb)
2013-03-05i965/fs: Only do CSE when the dst types match.Eric Anholt1-1/+2
We could potentially do some CSE even when the dst types aren't the same on gen6 where there is no implicit dst type conversion iirc, or in the case of uniform pull constant loads where the dst type doesn't impact what's stored. But it's not worth worrying about. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> NOTE: This is a candidate for the 9.1 branch. (cherry picked from commit c2a6e529c3bc9e62ad93beb1f5ae427dbbba8a38)
2013-03-05i965/fs: Delay setup of uniform loads until after pre-regalloc scheduling.Eric Anholt3-27/+66
This should fix the register allocation explosion on the GLES 3.0 test on gen6. It also gives us an instruction that will fit our CSE handling. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> NOTE: This is a candidate for the 9.1 branch. (cherry picked from commit aebd3f46e305829ebfcc817cafa8592edc2f80ab)
2013-03-05i965/fs: Fix copy propagation with smearing.Eric Anholt1-1/+2
We were correctly relaying the smear from MOV's src, but if the MOV didn't do a smear, we don't want to smash the smear value from the instruction being propagated into. Prevents a regression in the upcoming UBO change. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> NOTE: This is a candidate for the 9.1 branch. (cherry picked from commit 49bdebad3857bb9ebac53f593d08f0057f5a20d3)
2013-03-05st/xlib: initialize the drawable size in create_xmesa_buffer()Brian Paul1-2/+1
Otherwise, the PBuffer's size was never set. This also initializes the buffer size for windows, pixmaps, etc. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=61012 Note: This is a candidate for the stable branches. (cherry picked from commit e2091f64cb9ea79f3b51c353ed9facc03ec5690a)
2013-03-05st/mesa: implement glBitmap unpacking from a PBO, for the cache pathBrian Paul1-2/+11
We weren't mapping the PBO when using the bitmap cache (but we had the PBO code for the non-cache path.) Fixes http://bugs.freedesktop.org/show_bug.cgi?id=61026 Note: This is a candidate for the stable branches. (cherry picked from commit 63c30d7e4fd9676c72d5d94640e1e136bd9dd09f)
2013-03-05draw: fix non-perspective interpolation in interp()Brian Paul1-3/+8
This fixes a regression from ab74fee5e1a3fc3323b7238278637b232c2d0d95. When we use the clip coordinate to compute the screen-space interpolation factor, we need to first apply the divide-by-W step to the clip coordinate. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=60938 Note: This is a candidate for the 9.1 branch. (cherry picked from commit 5da967aff5adb3e27954488206fb885ea1ede0fd)
2013-03-05r600g/llvm: Add support for UBOVincent Lejeune2-1/+22
NOTE: This is a candidate for the Mesa stable branch. Reviewed-by: Tom Stellard <thomas.stellard at amd.com> (cherry picked from commit ef8fde6acbc575487388389b3af5eab18eae4537)
2013-03-05i965/fs: Do a general SEND dependency workaround for the original 965.Eric Anholt3-42/+229
We'd been ad-hoc inserting instructions in some SEND messages with no knowledge of when it was required (so extra instructions), but not all SENDs (so not often enough). This should do much better than that, though it's still flow-control-ignorant. v2: Use BRW_MAX_MRF instead of magic numbers. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=58960 Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> NOTE: Candidate for the stable branches. (cherry picked from commit c37992c54d753e732783f712dea2d483450371dd)
2013-03-05mesa: Modify candidate search stringIan Romanick1-1/+1
Several commits on master for the 9.1 branch had "NOTE" messages in a slightly different format. NOTE: This is a candidate for stable branches Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> (cherry picked from commit 674f9239b95847e84d036ec084edc6c780bcf604)
2013-03-05mesa: Add previously picked commit to .cherry-ignoreIan Romanick1-0/+1
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2013-03-04radeonsi: Fix up and enable flat shading.Michel Dänzer4-22/+5
Requires corresponding LLVM R600 backend fix to work correctly, but even without that it doesn't hang anymore. 13 more little piglits. Depends on LLVM: r175193, r175733 NOTE: This is a candidate for the 9.1 branch. (cherry picked from commit 18272c9b1b530ad6d2091b647c062793f94b5351)
2013-03-03vdpau-softpipe: Build correct source file - vl_winsys_xsp.cJakub Bogusz1-1/+1
Copy-and-paste problem introduced by commit 7f24483e. Reviewed-by: Matt Turner <mattst88@gmail.com>
2013-03-01winsys/radeon: Only add bo to hash table when creating flinkMartin Andersson1-4/+4
The problem is that we mix bo handles and flinked names in the hash table. Because kms type handles are not flinked they should not be added to the hash table. If we do that we will sooner or later get a situation where we will overwrite a correct entry because the bo handle was the same as a flinked name. Note: this is a candidate for the stable branches. Reviewed-by: Jerome Glisse <jglisse@redhat.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit d96d8ed910dcecf4511fbc8c24de292cf04ee1d4)
2013-02-28r600g: workaround hyperz lockup on evergreenJerome Glisse4-2/+23
This work around disable hyperz if write to zbuffer is disabled. Somehow using hyperz when not writting to the zbuffer trigger GPU lockup. See : https://bugs.freedesktop.org/show_bug.cgi?id=60848 Candidate for 9.1 Signed-off-by: Jerome Glisse <jglisse@redhat.com> (cherry picked from commit 6bc7605745d53df94398b724b66db74d23d09e03)