summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-02-22docs: Update relelase notesmesa-9.1Ian Romanick1-1/+2
2013-02-22mesa: Bump version to 9.1 (final)Ian Romanick2-2/+2
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2013-02-22i965: Enable OpenGL ES 3.0 on Sandy BridgeIan Romanick1-1/+1
Regardless of what we put in the screen structure, all of the extensions that compute_version_es2 checks are present and 3.0 will be exposed anyway. NOTE: This is a candidate for the 9.1 branch. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> (cherry picked from commit 7ae6864f0dbec33270c83c4181a8182139662d0f)
2013-02-22r600g: fixup PS_PARTIAL_FLUSH flag handling for caymanAlex Deucher1-7/+6
So we don't emit it twice if we ever use the flag on cayman. Note: this is a candidate for the 9.1 branch. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 8b5acad0e985215b46fc1cfc8ad87c8771a11a3a)
2013-02-22r600g: r6xx deadlock workaround (v6)Alex Deucher1-0/+6
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=50655 https://bugs.freedesktop.org/show_bug.cgi?id=47116 v2: flush along with workaround. v3: just need a flush v4: try WAIT_UNTIL v5: switch to PS partial flush v6: rework patch Note: this is a candidate for the 9.1 branch. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 8442b67f5f3aedbfdb4446164dd09d4eaeda4888)
2013-02-22r600g: add PS_PARTIAL_FLUSH flagAlex Deucher2-0/+6
PS_PARTIAL flushes seems to be required in certain cases to prevent hangs, especially on r6xx. Note: this is a candidate for the 9.1 branch. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 7ebf83f109db9dde89830d5844107c936cf42e4d)
2013-02-22configure: Fix build with automake < 1.11Lauri Kasanen1-1/+2
Commit 86d30dea3c13d29ef8d39bc18db63a0441051975 broke building with older automake versions with this error: Makefile:769: *** Recursive variable am__v_YACC_ references itself (eventually). Stop. This patch fixes it. Fix stolen from xorg-macros. Signed-off-by: Lauri Kasanen <cand@gmx.com> (cherry picked from commit 0a82828ad53bfd8395614be48d33fc522d15f6c4)
2013-02-22radeonsi: Fix PIPE_FORMAT_X32_S8X24_UINT sampler hardware formatMichel Dänzer1-1/+1
4 more little piglits. NOTE: This is a candidate for the 9.1 branch. (cherry picked from commit 9c1107b3e1a4f9f932728d53a8a7961ac948521e)
2013-02-22radeonsi: Use stencil surface level information for stencil texturingMichel Dänzer2-7/+10
7 more little dwarves^W piglits. NOTE: This is a candidate for the 9.1 branch. (cherry picked from commit 8356962853727136f3316ed227fb7bfe98e2f2bd)
2013-02-22radeonsi: properly implement S8Z24 depth-stencil formatMichel Dänzer1-29/+66
Based on r600g commit 2b9659c9e627ad03160899b8be04f96307d098eb . Fixes crashes with 4 piglit tests which are now hitting these formats. NOTE: This is a candidate for the 9.1 branch. (cherry picked from commit f9adf7987601197641cd0d851e47b45c5c416f00)
2013-02-22radeonsi: Fix w component of TGSI_SEMANTIC_POSITION fragment shader inputs.Michel Dänzer1-0/+8
It's the reciprocal of the register value. Fixes piglit fragcoord_w and glsl-fs-fragcoord-zw-perspective. NOTE: This is a candidate for the 9.1 branch. (cherry picked from commit 954bc4ac34b821cdc4ecb3ea8e394a66bcc2dda0)
2013-02-22radeonsi: Fix blending using destination alpha factor but non-alpha destinationMichel Dänzer1-3/+5
11 more little piglits. NOTE: This is a candidate for the 9.1 branch. Reviewed-by: Marek Olšák <maraeo@gmail.com> (cherry picked from commit 95bced59293bc3dffad955b714c142455aa05aa8)
2013-02-22radeonsi: implement 3D transfersMarek Olšák1-20/+29
That means we can map and read multiple slices with one transfer_map call. [ Cherry-picked from r600g commit 1aebb6911e9aa1bd8900868b58d1750ca83a20c7 ] 11 more little piglits on master, 1 more on the 9.1 branch (Marek's glTex(Sub)Image improvements on master broke the other 10). NOTE: This is a candidate for the 9.1 branch. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 72f4490b551d118c726a516359b804ae7425333e)
2013-02-22radeonsi: add assertions to prevent creation of invalid surfacesMarek Olšák3-15/+18
[ Cherry-picked from r600g commit ef11ed61a0414d0405c3faf7f48fa3f1d083f82e ] NOTE: This is a candidate for the 9.1 branch. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit a84c4edeede12a1275a37a61408f578481bd4355)
2013-02-22radeonsi: use u_box_origin_2d helper functionMarek Olšák1-5/+2
[ Cherry-picked from r600g commit b278aba42310e8fa30f2408b9dcd58dbb4901724 ] NOTE: This is a candidate for the 9.1 branch. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit c4faab63c45aad579ef324fcc076c88a7cebbef6)
2013-02-22st/mesa: don't do sRGB conversion in CopyTexSubImageMarek Olšák1-2/+2
Assuming I understand EXT_texture_sRGB correctly. NOTE: This is a candidate for the stable branches. Reviewed-by: Brian Paul <brianp@vmware.com> (cherry picked from commit 6520a86c6755f52a1364fcd21dc36a5cb8381a0e)
2013-02-22r600g: fix random corruption with CP DMA in TF2Marek Olšák1-0/+3
NOTE: This is a candidate for the 9.1 branch. (cherry picked from commit aac81387447152b5bda99150414d636a003adc56)
2013-02-22llvmpipe/build: add DLOPEN_LIBS and PTHREAD_LIBS to the lp_test_* targetsAndreas Boll1-5/+12
Fixes undefined symbols. NOTE: This is a candidate for the 9.1 branch. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=61052 Tested-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Jose Fonseca <jfonseca@vmware.com> (cherry picked from commit c1f2c3a80fa555287fd756832a05587fab8b79bd)
2013-02-22targets/xa-vmwgfx: Force c++ linker to fix undefined symbolsAndreas Boll1-0/+2
NOTE: This is a candidate for the 9.1 branch. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=61200 Reviewed-by: Matt Turner <mattst88@gmail.com> (cherry picked from commit c1eb585f3d62670782d9cc73637b7e3bcab46d66)
2013-02-21r300g/compiler: Fix bug in OMOD foldingTom Stellard3-1/+77
The OMOD value was only being folded to one instruction in cases where the MUL instruction was reading a value written by more than one instruction. NOTE: This is a candidate for the stable branches. Reviewed-by: Marek Olšák <maraeo@gmail.com> (cherry picked from commit 10bcc843f8898c2466b610d08edc27516e10cc51)
2013-02-21r300g/tests: Add helper functions for creating a full programTom Stellard2-8/+75
Now you can convert assembly strings into a full struct radeon_compiler object and use it to test individual compiler pases. NOTE: This is a candidate for the stable branches. Reviewed-by: Marek Olšák <maraeo@gmail.com> (cherry picked from commit 5e1321ddf4dacb212ed3215f2b9beead630353a1)
2013-02-21r300g/tests: Exit test runner with a valid status codeTom Stellard5-6/+22
This way make check can report whether or not the tests pass. NOTE: This is a candidate for the stable branches. Reviewed-by: Marek Olšák <maraeo@gmail.com> (cherry picked from commit bcf2e157caeb2ee607a1398de9fd68f315dd4d6e)
2013-02-21r300g/complier: Make r300_vertprog_swizzle_caps visible in other filesTom Stellard2-1/+3
This will be used by the test suite in later commits. NOTE: This is a candidate for the stable branches. Reviewed-by: Marek Olšák <maraeo@gmail.com> (cherry picked from commit 5355fc1e8743dd776b86a15a16a1bc597da7d0f1)
2013-02-21r300g/compiler: Add missing license headersTom Stellard13-1/+339
These are all files that I authored, but forgot to add the license headers. NOTE: This is a candidate for the stable branches. Signed-off-by: Tom Stellard <thomas.stellard@amd.com> Reviewed-by: Marek Olšák <maraeo@gmail.com> (cherry picked from commit 27d140b96029660c4d0fade6efa9499cd4d23903)
2013-02-21r600g: don't enable ReZ mode on evergreenAlex Deucher1-1/+4
Can cause lockups in certain cases when zfunc/zenable/zwrite change without a flush in between. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=60969 and lockups on Civ4 with wine. This is a candidate for the 9.1 branch. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Marek Olšák <maraeo@gmail.com> (cherry picked from commit 2e4ef989a2142c9976be6fe0c6fafeb2bdf4e37d)
2013-02-20mesa: Don't install glEvalMesh in the beginend dispatch tableIan Romanick3-9/+16
NOTE: This is a candidate for the 9.1 branch. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59740 Reviewed-by: Eric Anholt <eric@anholt.net> (cherry picked from commit 8b586322e71d5ad0ce95d0fbcbfeb4df13f65040)
2013-02-19DRI2: Don't disable GLX_INTEL_swap_event unconditionallyZack Rusin1-3/+12
GLX_INTEL_swap_event is broken on the server side, where it's currently unconditionally enabled. This completely breaks systems running on drivers which don't support that extension. There's no way to test for its presence on this side, so instead of disabling it uncondtionally, just disable it for drivers which are known to not support it. It makes sense because most drivers do support it right now. We'll be able to remove this once Xserver properly advertises GLX_INTEL_swap_event. Note: This is a candidate for stable branch branches. Signed-off-by: Zack Rusin <zackr@vmware.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=60052 Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org> Reviewed-by: Brian Paul <brianp@vmware.com> Tested-by: Ian Romanick <ian.d.romanick@intel.com> (cherry picked from commit 076403c30d9f5cc79374e30d9f6007b08a63bf2d)
2013-02-19glx: fix glGetTexLevelParameteriv for indirect renderingStefan Brüns1-1/+3
A single element in a GLX reply is contained in the header itself. The number of elements is denoted in the "n" field of the reply. If "n" is 1, the length of additional data is 0. The XXX_data_length() function of xcb does not return the length of the (optional, n>1) data but the number of elements. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=59876 Note: This is a candidate for the stable branches. Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de> Signed-off-by: Brian Paul <brianp@vmware.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> (cherry picked from commit 5876a5dbc0a6ec9ae7f44b5e483d38ae0d24a259)
2013-02-17mesa: Bump version to 9.1-rc2mesa-9.1-rc2Ian Romanick2-2/+2
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2013-02-17i965/fs: Use a helper function for checking for flow control instructions.Eric Anholt3-23/+22
In 2 of our checks, we were missing BREAK and CONTINUE. NOTE: Candidate for the stable branches. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (cherry picked from commit bf91f0b03942d966cf453201dc52c4aa4049f8fa)
2013-02-17shaderapi: Fix AttachShader errorbma1-0/+14
Detect a duplicate Shader type as and error instead of silently allowing it, restrict to ES2 API. v2: Tapani Pälli <tapani.palli@intel.com> - make the check run time instead of compile time v3: chadv - Quote spec on which error to generate. Signed-off-by: bma <Bo.Ma@windriver.com> Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-and-tested-by: Chad Versace <chad.versace@linux.intel.com> (cherry picked from commit ce3dfa19ab27871d7eecd5664c1674e467b736bc)
2013-02-17i965: Re-enable the -RHW workaround for original gen4 chips.Eric Anholt1-12/+8
Fixes broken clipping in supertuxkart and presumably many other applications. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=51471 NOTE: Candidate for the stable branches. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (cherry picked from commit cb4616d32dc85e60dba08d86581dbb0d6d1b7ffa)
2013-02-17i965/gen4: Work around missing sRGB RGB DXT1 support.Eric Anholt3-4/+20
The hardware just doesn't support it. I suspect this was a regression from the move to fixed MESA_FORMATs for compressed textures and that previously we were storing uncompressed for this or something. Fixes GPU hangs in piglit "texwrap GL_EXT_texture_sRGB-s3tc bordercolor swizzled" on my GM965. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (cherry picked from commit ddc2b453d02f2a9460efcc6c6198f56ba89e87fe)
2013-02-17mesa: Add .cherry-ignore for 9.1Ian Romanick1-0/+3
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2013-02-17i965: Fix leak in blorp CopyTexSubImage2DChristopher James Halse Rogers1-2/+2
_mesa_delete_renderbuffer does not call the driver-specific renderbuffer delete function, so the blorp code was leaking the Intel-specific bits, including some GEM objects. Call the renderbuffer's ->Delete() method instead, which does the right thing. Fixes Unity rapidly sending the machine into the arms of the OOM-killer Note: This is a candidate for the 9.1 branch. Reviewed-by: Eric Anholt <eric@anholt.net> (cherry picked from commit dd599188d2868838541859a76800a8420958d358)
2013-02-17st/mesa: fix format query for GL_ARB_texture_rgBrian Paul1-3/+4
The GL_ARB_texture_rg spec says that we need to support both texturing and rendering for the GL_RED and GL_RG formats. So move the format check up into the rendertarget_mapping[] list. Also, add PIPE_FORMAT_R8_UNORM to the list of formats required. Note: This is a candidate for the stable branches. Reviewed-by: Marek Olšák <maraeo@gmail.com> (cherry picked from commit 4be5a067527107a383596c28f14bd76492c1cb4b)
2013-02-17i965/gen7: Set up all samplers even if samplers are sparsely used.Eric Anholt1-1/+1
In GLSL, sampler indices are allocated contiguously from 0. But in the case of ARB_fragment_program (and possibly fixed function), an app that uses texture 0 and 2 will use sampler indices 0 and 2, so we were only allocating space for samplers 0 and 1 and setting up sampler 0. We would read garbage for sampler 2, resulting in flickering textures and an angry simulator. Fixes bad rendering in 0 A.D. and ETQW. This was fixed for pre-gen7 by 28f4be9eb91b12a2c6b1db6660cca71a98c486ec Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=25201 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=58680 Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> NOTE: This is a candidate for stable branches. (cherry picked from commit 5bb05c6e6d596d66c177e42a36128d2ca2e300aa)
2013-02-17i965: Use derived state for Haswell's 3DSTATE_VF packet.Kenneth Graunke1-2/+2
Otherwise, we fail to correctly handle GL_PRIMITIVE_RESTART_FIXED_INDEX. Fixes gles3conform's primitive_restart_mode test. NOTE: This is a candidate for the 9.1 branch. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net> (cherry picked from commit 8cabe26f5dc4c66ae59649cfd7b25f761cda250b)
2013-02-17util: fix incorrect Z bit masking in util_clear_depth_stencil()Brian Paul1-2/+2
For PIPE_FORMAT_Z24_UNORM_S8_UINT, the Z bits are in the 24 least significant bits. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=60527 and http://bugs.freedesktop.org/show_bug.cgi?id=60524 and http://bugs.freedesktop.org/show_bug.cgi?id=60047 Note: This is a candidate for the stable branches. Reviewed-by: Jose Fonseca <jfonseca@vmware.com> (cherry picked from commit 4bfdef87e66bfb2459af570351798d7754ddfb9f)
2013-02-17mesa: fix GetTexImage if mesa format and internal format don't matchMarek Olšák2-0/+71
Tested with softpipe only exposing RGBA formats. NOTE: This is a candidate for the stable branches. Reviewed-by: Brian Paul <brianp@vmware.com> (cherry picked from commit cb6470775c0139323bf889d2df2facdbc06a2b09)
2013-02-17mesa: don't use memcpy fast path for GetTexImage if base format is differentMarek Olšák1-4/+6
The Mesa format can be RGBA8888_REV, the format/type can be GL_RGBA/GL_UNSIGNED_BYTE, but the actual texture internal format can be LUMINANCE_ALPHA, INTENSITY, etc. Therefore we should look at the base internal format as well. NOTE: This is a candidate for the stable branches. Reviewed-by: Brian Paul <brianp@vmware.com> (cherry picked from commit c8379204ab0af97558871fffccdd74c60a41776a)
2013-02-17mesa: don't use _mesa_base_tex_format for format parameter of GetTexImageMarek Olšák1-1/+36
_mesa_base_tex_format doesn't accept GL_BGR and GL_ABGR_EXT, etc. v2: add a (now hopefully complete) helper function to deal with this NOTE: This is a candidate for the stable branches. Reviewed-by: Brian Paul <brianp@vmware.com> (cherry picked from commit 09a99867abcc65e208959995c794457da6193967)
2013-02-17intel: Do not expose OES_compressed_ETC1_RGB8_texture or ↵Ian Romanick1-2/+2
ARB_texture_rgb10_a2ui pre-GEN4 Older hardware cannot do ARB_texture_rgb10_a2ui, and the translation code for OES_compressed_ETC1_RGB8_texture was never implemented in the i915 driver. NOTE: This is a candidate for all stable branches. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (cherry picked from commit 0e2f26d5ea26febd16173aa8bbf7427b090e320f)
2013-02-17softpipe: fix using optimized filter functionRoland Scheidegger1-0/+1
This optimized filter (when using repeat wrap modes, linear min/mag/mip filters, pot textures) only applies to 2d textures, but nothing prevented it from being used for other textures (likely leading to very bogus sample results). Note: This is a candidate for the 9.0 branch. Reviewed-by: Jose Fonseca <jfonseca@vmware.com> (cherry picked from commit 66b6d5121475ecdd6b76ff660e28dfa6cc3f727c)
2013-02-17egl-wayland: Make sure we allocate a back buffer even if nothing was renderedKristian Høgsberg1-0/+8
At eglSwapBuffer time, we blindly assume we have a back buffer, but the back buffer only gets allocated when somebody tries to render something. NOTE: This is a candidate for the 9.0 and 9.1 branches. https://bugs.freedesktop.org/show_bug.cgi?id=60086 (cherry picked from commit 1fe007399c1ed28b8cef9d4f040164480423f2c9)
2013-02-17svga: fix sRGB renderingBrian Paul1-0/+11
We weren't emitting the SVGA_RS_OUTPUTGAMMA state so sRGB rendering didn't work properly. Fixes piglit's framebuffer-srgb test. Note: This is a candidate for the stable branches. Reviewed-by: Jose Fonseca <jfonseca@vmware.com> (cherry picked from commit ff605091579a0dfbb6a6b3ea0e46d6fed28a278b)
2013-02-17st/mesa: don't choose DXT formats if we can't do DXT compressionBrian Paul5-13/+29
If we call gl[Copy]TexImage2D() with a generic compression format (e.g. intFormat=GL_COMPRESSED_RGBA) we can't choose a DXT format if we don't have the external DXT compression library. We weren't actually enforcing this before since the pipe_screen::is_format_supported(DXT) query has no dependency on the DXT compression library. Now if we're given a generic compressed format and we can't do DXT compression we'll fall back to a non-compressed format. v2: use util_format_is_s3tc() function and add more comments about the allow_dxt parameter. Note: This is a candidate for the stable branches. Reviewed-by: Jose Fonseca <jfonseca@vmware.com> (cherry picked from commit 4df42890c583172b0516fb90bf905e64889c5b75)
2013-02-17mesa: don't use format chooser code for glCompressedTexImageBrian Paul1-2/+12
When glCompressedTexImage is called the internalFormat is a specific format for the incoming image and the the hardware format should be the same (since we never do format transcoding). So use the simpler _mesa_glenum_to_compressed_format() function. This change is also needed for the next patch. Note: This is a candidate for the stable branches. (cherry picked from commit 478056b81ae80ea3301511fb99b7ba5845202379)
2013-02-17configure.ac: GLX cannot work without OpenGLMichel Dänzer1-0/+10
GLX uses mapi/glapi/libglapi.la, which is only built for OpenGL. If the user specified --enable-xlib-glx --disable-opengl, error out, as these cannot be both observed at the same time. If the user just specified --disable-opengl but not --disable-glx, print a warning and disable GLX as well. NOTE: This is a candidate for the stable branches. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59364 Tested-by: Tom Stellard <thomas.stellard@amd.com> (cherry picked from commit 3b888f534cd42065b01ede8b9c646a2be0015509)
2013-02-17glx: Check that swap_buffers_reply is non-NULL before using itStéphane Marchesin1-3/+5
Check that the return value from xcb_dri2_swap_buffers_reply is non-NULL before accessing the struct members. Note: This is a candidate for the 9.0 branch. Reviewed-by: Brian Paul <brianp@vmware.com> (cherry picked from commit 67e7263e4567f36e59009a1ca076a2854a6c1b0e)