summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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>
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>
2013-02-22meta: 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>
2013-02-22mesa: 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>
2013-02-22i965/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>
2013-02-22tgsi: Improve execution debugging.José Fonseca1-5/+24
- zero temps/outputs instead of copying (otherwise we won't be able to see the temps/outputs assignments for small shaders where nothing changes across big areas - also show the inputs (as it's often impossible to infer from the rest) Reviewed-by: Brian Paul <brianp@vmware.com>
2013-02-22util/u_dump: Update texture target strings.José Fonseca1-2/+10
2013-02-22util/debug: Always use __builtin_frame_address on gcc.Sergey Matyukevich1-4/+1
Should workaround fdo bug 57563. Signed-off-by: José Fonseca <jfonseca@vmware.com>
2013-02-22radeon/llvm: Remove stale comment about radeon_llvm_emit_prepare_cube_coordsMichel Dänzer1-1/+0
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.
2013-02-22radeonsi: Don't pretend there is any R8G8B8 supportMichel Dänzer1-1/+0
The hardware can't do it.
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>
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>
2013-02-22llvmpipe: Fix rendering into PIPE_FORMAT_X8*_UNORM.Roland Scheidegger1-15/+31
Mesa state tracker recently started using PIPE_FORMAT_X8B8G8R8_UNORM, causing segfaults in texture-packed-formats, because swizze[chan] was 0xff for padding channel (X). Signed-off-by: José Fonseca <jfonseca@vmware.com>
2013-02-22trace: Never close stdout/stderr.José Fonseca1-2/+9
This could happen, when a trace screen was destroyed and then recreated.
2013-02-22trace: Fix set_constant_buffer dumping.José Fonseca1-2/+2
We were dumping the trace driver pointer, instead of the pointer from the underlying pipe driver.
2013-02-21r600g: Fix memory leak in r600_shader_select.Vinson Lee1-0/+1
Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reported-by: Michel Dänzer <michel@daenzer.net> Reviewed-by: Marek Olšák <maraeo@gmail.com>
2013-02-22llvmpipe: simplify buffer allocation logic.Roland Scheidegger1-7/+5
Now with buffer formats clarification don't need all that logic any longer. (Note that it never would have worked in any case, because blockwidth and blockheight were swapped any allocation with multi-byte format would have had zero size.) Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2013-02-22gallium/docs: improve text about resources a bit.Roland Scheidegger1-29/+33
This clarifies some things and gets rid of some old stuff. The most significant one is probably that buffers cannot have formats (nearly all drivers completely ignored format and used width0 as byte size already in any case). There seems to be no use case for "structured" buffers. (Note while d3d11 has new Structured Buffers, these still aren't associated with a format, rather a byte stride, which we can't do yet either way.) Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2013-02-22draw: make sure key size is calculated consistently.Roland Scheidegger1-5/+9
Some parts calculated key size by using shader information, others by using the pipe_vertex_element information. Since it is perfectly valid to have more vertex_elements set than the vertex shader is using those may not be the same, so we weren't copying over all vertex_element state - this caused the tgsi dump to assert (iterates over all vertex elements). More importantly in this situation it would also break vertex texturing completely (since the sampler state derived from the key is at a different position than expected). Fix thix by deriving key->nr_vertex_elements from the shader information instead of the pipe_vertex_element state (unlike dx10, we can't have "holes" in pipe_vertex_element state, so this should be safe). (Note that actual llvm shader generation does not use the pipe_vertex_element state from the key itself in any case (althogh I guess it could) but uses the one from draw.pt (which should be the same though contains all elements) instead.) Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
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>
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>
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>
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>
2013-02-21r300g/compiler: Fix typo in commentTom Stellard1-1/+1
Reviewed-by: Marek Olšák <maraeo@gmail.com>
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>
2013-02-21i965: Avoid segfault in gen6_upload_stateCarl Worth1-1/+1
This fixes a bug introduced in commit 258453716f001eab1288d99765213 and triggered whenever "rb" is NULL. Fixes at least one cause bug #59445: [SNB/IVB/HSW Bisected]Oglc draw-buffers2(advanced.blending.none) segfault https://bugs.freedesktop.org/show_bug.cgi?id=59445 (Though segfaults are still possible in that test case, but they have been present since before commit 258453716f which is what's being fixed here.) Reviewed-by: Eric Anholt <eric@anholt.net>
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>
2013-02-21docs: import release notes for 9.0.3, add news itemAndreas Boll3-0/+256
2013-02-21radeonsi: Don't match TGSI_SEMANTIC_POSITION fs inputs to vs outputsMichel Dänzer1-2/+5
2013-02-21radeonsi: 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.
2013-02-21radeonsi: 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.
2013-02-20radeonsi: Fix memory leak in si_shader_select.Vinson Lee1-0/+1
Fixes resource leak defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2013-02-20i965: Consign COORD_REPLACE VS hacks to Pre-Gen6.Paul Berry3-11/+34
Pre-Gen6, the SF thread requires exact matching between VS output slots (aka VUE slots) and FS input slots, even when the corresponding VS output slot is unused due to being overwritten by point coordinate replacement (glTexEnvi(GL_POINT_SPRITE, GL_COORD_REPLACE, GL_TRUE)). As a result, we have a special hack in the VS to ensure when any texture coordinate is subject to point coordinate replacement, it is always allocated space in the VUE, even if it isn't written to by the VS. This hack isn't needed from Gen6 onwards, since SF (Gen7: SBE) swizzling has the ability to insert the point coordinate into gl_TexCoord[] without needing a corresponding unused VUE slot. Note that no modification of SF setup code is required for this patch--get_attr_override() already does the right thing. However, we make a slight comment change to clarify why this works. In addition to eliminating unnecessary VS recompiles and saving precious URB space on Gen6+, this will save us the trouble of having to adjust this hack when we implement geometry shaders. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
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>
2013-02-20gallivm: fix indirect src register fetches requiring bitcastRoland Scheidegger1-21/+16
For constant and temporary register fetches, the bitcasts weren't done correctly for the indirect case, leading to crashes due to type mismatches. Simply do the bitcasts after fetching (much simpler than fixing up the load pointer for the various cases). This fixes https://bugs.freedesktop.org/show_bug.cgi?id=61036 Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2013-02-20llvmpipe: lp_resource_copy cleanupRoland Scheidegger5-49/+47
We don't need to flush resources for each layer, and since we don't actually care about layer at all in the flush function just drop the parameter. Also we can use util_copy_box instead of repeated util_copy_rect. Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2013-02-20llvmpipe: fix lp_resource_copy using more than one 3d sliceRoland Scheidegger1-84/+86
These used to be illegal a very long time ago, then for some more time nothing really emitted these so this code path wasn't hit. Just trivially iterate over box->depth. (Might be worth refactoring at some point since nowadays all the code doesn't really do much except for depth textures.) This fixes https://bugs.freedesktop.org/show_bug.cgi?id=61093 Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2013-02-20gles2: a stub implementation for GL_EXT_discard_framebufferTapani Pälli7-1/+77
This patch implements a stub for GL_EXT_discard_framebuffer with required checks listed by the extension specification. This extension is required by GLBenchmark 2.5 when compiled with OpenGL ES 2.0 as the rendering backend. Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-and-tested-by: Chad Versace <chad.versace@linux.intel.com>
2013-02-20r600g/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>
2013-02-20radeonsi: 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>
2013-02-20radeonsi: 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>
2013-02-20radeonsi: 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>
2013-02-20radeonsi: 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>
2013-02-19configure.ac: Do not check for clock_gettime on MinGW.Vinson Lee1-1/+1
MinGW does not have clock_gettime. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Matt Turner <mattst88@gmail.com>
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>
2013-02-19i965/fs: Enable CSE on uniform pull constant loads.Eric Anholt1-0/+3
Improves on a major performance regression for the dolphin wii emulator from its move to using UBOs. Performance in the UBO codepath (as replayed through apitrace) is up 21.1% +/- 2.3% (n=26/29). Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-02-19i965/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.
2013-02-19i965/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.
2013-02-19i965/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.