summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-08-19mesa: Bump version to 9.2-rc1mesa-9.2-rc1Ian Romanick3-3/+3
2013-08-19glsl: Use alignment of container record for its first fieldIan Romanick2-2/+28
The first field of a record in a UBO has the aligment of the record itself. Fixes piglit vs-struct-pad, fs-struct-pad, and (with the patch posted to the piglit list that extends the test) layout-std140. NOTE: The bit of strangeness with the version of visit_field without the record_type poitner is because that method is pure virtual in the base class. The original implementation of the class did this to ensure derived classes remembered to implement that flavor. Now they can implement either flavor but not both. I don't know a C++ way to enforce that. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Paul Berry <stereotype441@gmail.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=68195 Cc: "9.2 9.1" mesa-stable@lists.freedesktop.org (cherry picked from commit 574e4843e9e26aa6affa31c80ac42f745b68268b)
2013-08-19glsl: Add new overload of program_resource_visitor::visit_field methodIan Romanick2-10/+48
The outer-most record is passed into the visit_field method for the first field. In other words, in the following structure: struct S1 { vec4 v; float f; }; struct S { S1 s1; S1 s2; }; uniform Ubo { S s; }; s.s1.v would get record_type = S (because s1.v is the first non-record field in S), and s.s2.v would get record_type = S1. s.s1.f and s.s2.f would get record_type = NULL becuase they aren't the first field of anything. This new overload isn't used yet, but the next patch will add several uses. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Paul Berry <stereotype441@gmail.com> Cc: "9.2 9.1" mesa-stable@lists.freedesktop.org (cherry picked from commit 5ac884fd9f213baed1de52eb7d17b86455c48a02)
2013-08-19glsl: Disallow embedded structure definitionsIan Romanick3-0/+38
Continue to allow them in GLSL 1.10 because the spec allows it. Generate an error in all other versions because the specs specifically disallow it. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "9.2" <mesa-stable@lists.freedesktop.org> (cherry picked from commit d9bb8b7b56ce65bbf6909419aa6d3d69ccd34c08)
2013-08-19meta: Add default precision qualifier to all fragement shadersIan Romanick1-0/+18
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "9.2" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 5fb1dd51f3845985b9389987a1c6337e7fafeabc)
2013-08-19glsl: Add default precision qualifiers for ES builtinsIan Romanick5-0/+6
Once the compiler proplerly checks for default precision qualifiers, these shaders will cease to compile. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "9.2" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 5ac247a73e78c6df7a3980c84e6207c3da601987)
2013-08-19glsl: don't eliminate texcoords that can be set by GL_COORD_REPLACEMarek Olšák3-12/+23
Tested by examining generated TGSI shaders from piglit/glsl-routing. Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Henri Verbeet <hverbeet@gmail.com> Tested-by: Henri Verbeet <hverbeet@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> (cherry picked from commit d13003f544417db6de44c65a0c118bd2b189458a)
2013-08-19nv50: allow non-nv12 buffers to be created, just pass them through to vlIlia Mirkin1-5/+1
Since we expose non-NV12 formats as supported when there is no decoer profile selected, make sure that those formats are actually allowed to be allocated. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Tested-by: Emil Velikov <emil.l.velikov@gmail.com> Cc: "9.2" <mesa-stable@lists.freedesktop.org> (cherry picked from commit a8346a2f52d08233d376db3aa8205d0b2cc74318)
2013-08-16meta: Fix blitting a framebuffer with renderbuffer attachmentAnuj Phogat1-10/+15
This patch fixes a case of framebuffer blitting with renderbuffer as color attachment and GL_LINEAR filter. Meta implementation of glBlitFrambuffer() converts source color buffer to a texture and uses it to do the scaled blitting in to destination buffer. Using the exact source rectangle to create the texture does incorrect linear filtering along the edges. This patch makes the changes to extend the texture edges by one pixel in x, y directions. This ensures correct linear filtering. It fixes failing piglit fbo-attachments-blit-scaled-linear test. Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> CC: "9.2" <mesa-stable@lists.freedesktop.org> CC: "9.1" <mesa-stable@lists.freedesktop.org> Reviewed-by: Paul Berry <stereotype441@gmail.com> (cherry picked from commit d944a6144f6ee6a0b24126ce72de280db90038c9)
2013-08-16nv30: remove no-longer-used formats from tableIlia Mirkin1-3/+0
Commit 14ee790df77 removed the formats from the vtxfmt_table but forgot to also update the info_table. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "9.2 and 9.1" <mesa-stable@lists.freedesktop.org> (cherry picked from commit c1a6f59b20dab380b77ad1375062f9987cad9183)
2013-08-16i965: Force X-tiling for 128 bpp formats on Sandybridge.Kenneth Graunke1-0/+9
128 bpp formats are not allowed to be Y-tiled on any architectures except Gen7. +11 Piglits on Sandybridge (mostly regression fixes since the switch to Y-tiling). Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=63867 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64261 Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Cc: "9.2" <mesa-stable@lists.freedesktop.org> (cherry picked from commit c189840b21e176d87cbb382e64e848061b8c7b06)
2013-08-16mesa/program: remove useless YYIDLaurent Carlier1-2/+2
This fixes the build with Bison 3.0. Also works with Bison 2.7.1. CC: "9.2" <mesa-stable@lists.freedesktop.org> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (cherry picked from commit 5ffa28df4e4cc22481b4ed41c78632f35765f41d)
2013-08-15mesa/vbo: Fix handling of attribute 0 in non-compatibilty contextsIan Romanick1-23/+59
It is only in OpenGL compatibility-style contexts where generic attribute 0 and GL_VERTEX_ARRAY have a bizzare, aliasing relationship. Moreover, it is only in OpenGL compatibility-style contexts and OpenGL ES 1.x where one of these attributes provokes the vertex. In all other APIs each implicit call to glArrayElement provokes a vertex regardless of which attributes are enabled. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Robert Bragg <robert@sixbynine.org> Cc: "9.0 9.1 9.2" <mesa-stable@lists.freedesktop.org> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55503 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66292 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=67548 (cherry picked from commit 41eef83cc030e7087b79b0070d00fbc56538fb81)
2013-08-15i915,i965: Fix memory leak in try_pbo_upload (v2)Vinson Lee2-0/+2
Fixes "Resource leak" defect reported by Coverity. Tested on Haswell, no Piglit regressions. v2: Apply to i965, not just i915. (chadv) CC: "9.2, 9.1" <mesa-stable@lists.freedesktop.org> Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com> (cherry picked from commit 035bf2198368d3fa69387788a63039d71319f0bf)
2013-08-15radeonsi: Don't leave gaps between position exports from vertex shaderMichel Dänzer3-59/+83
If the vertex shader exports clip distances but not point size, use position exports 1/2 instead of 2/3 for the clip distances. Fixes geometry corruption in that case. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66974 Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Tom Stellard <thomas.stellard@amd.com> (cherry picked from commit b00269aa5887b88d2e037d6bfa374779902f8743)
2013-08-15llvmpipe: fix stencil bug if we have both stencil and depth testsRoland Scheidegger1-14/+13
This is a very well hidden bug found by accident (only the fixed glean tstencil2 test so far seems to hit it). We must use new mask with combined s_pass values and orig_mask values for zpass/zfail stencil ops, otherwise both the sfail op and one of zpass/zfail op are applied (probably not hit in most tests because some of the ops tend to be KEEP usually). Note: this is a candidate for the 9.2 branch. Reviewed-by: Zack Rusin <zackr@vmware.com> (cherry picked from commit abdd32dcd5569c7caa393acd21753e03de24047f)
2013-08-15nv30: U8_USCALED only works for size 4Ilia Mirkin1-3/+0
See https://bugs.freedesktop.org/show_bug.cgi?id=61635 for a sample program. Changing it to use a vec4 makes it work. Remove the unsupported formats. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "9.2 and 9.1" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 14ee790df77c810f187860a8d51096173ff39fcf)
2013-08-15glsl: Emit better warnings for things that look like default precision ↵Ian Romanick1-13/+31
statements Previously we would emit a warning for empty declarations like float; We would also emit the same warning for things like highp float; However, this second case is most likely the application trying to set the default precision. This makes the compiler generate a stronger warning with some suggestion of a fix. It really seems like this should be an error. I'll bet that 100% of the time someone writes 'highp float;' the actually meant 'precision highp float;'. Alas, both AMD and NVIDIA accept this syntax, and the spec doesn't explicitly forbid it. This makes piglit's precision-05.vert generate the following warnings: 0:12(11): warning: empty declaration with precision qualifier, to set the default precision, use `precision lowp float;' 0:13(12): warning: empty declaration with precision qualifier, to set the default precision, use `precision mediump int;' v2: Add { } around a one-line if body and fix a comment. Suggested by Ken. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "9.2" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 830f4df993b41fc90c776b19f77f77a29ce0e7f4)
2013-08-15draw: always call util_cpu_detect() in draw context creation.Roland Scheidegger1-1/+4
Since disabling denorms in draw_vbo() we require the util_cpu_caps to be initialized there. Hence add another util_cpu_detect() call in draw_create_context() which should ensure this. (There is another call in draw_get_option_use_llvm() which only gets called with x86 (not x86_64) but calling it always there wouldn't help since it most likely wouldn't get called when compiling without llvm, so leave it alone there.) This fixes https://bugs.freedesktop.org/show_bug.cgi?id=66806. (Because util_cpu_caps wasn't initialized when first calling util_fpstate_get() hence it returning zero, but it would later get initialized by rtasm translate code hence when draw call returned it unmasked all exceptions by calling util_fpstate_set(). This was happening only with DRAW_USE_LLVM=0 or not compiling with llvm, otherwise the llvm init code was calling it on time too.) Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Reviewed-by: Zack Rusin <zackr@vmware.com> Tested-by: Vinson Lee <vlee@freedesktop.org>
2013-08-14radeon/llvm: Add missing "%s" format string to fprintf.Jon Severinsson1-1/+1
This fixes a compilation warning with -Wformat-security. CC: "9.2" <mesa-stable@lists.freedesktop.org> Reviewed-by: Tom Stellard <thomas.stellard@amd.com> (cherry picked from commit 9298f537a72dc2323898e91c40894f55e3c4754a)
2013-08-13glsl: disable ARB_texture_cube_map_array_enable keywords for glsl esTapani Pälli1-24/+5
Patch fixes a crash with Webgl 'shader-with-non-reserved-words' conformance test by ignoring desktop extension keywords on GLSL ES. v2: fix reserved and allowed desktop glsl versions (Chris) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64087 Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (cherry picked from commit 8c211dd742669bc03b44186e41e5aa40081d6bcc)
2013-08-13gbm: Link to libwayland-drm if Wayland EGL platform is enabledArmin K3-5/+6
We were relying on libEGL to pull in libwayland-client symbols, but with commit 2c2e64edaba0f6aeb181ca5b51eb8dea8e9b39f9 cleaned up the symbol leak. CC: "9.2" <mesa-stable@lists.freedesktop.org> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=67962 Tested-by: Bryce Harrington <b.harrington@samsung.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com> (cherry picked from commit f423eba46e080b975a2b8366b490d99dee4729ad)
2013-08-13glsl: Require function return type arrays be explicitly sizedIan Romanick1-0/+12
Fixes piglit array-function-return-unsized.vert. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "9.2" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 1b35e33af420cd335610289aa2d8a175a7139a97)
2013-08-13glsl: Move and refine test for unsized arrays in GLSL ESIan Romanick1-6/+27
GLSL ES does not allow unsized arrays, and GLSL ES 1.00 does not allow array initializers. However, GLSL ES 3.00 allows array initializers, and the initializer can explicitly size the array. The specification even includes some examples of this: float x[] = float[2] (1.0, 2.0); // declares an array of size 2 float y[] = float[] (1.0, 2.0, 3.0); // declares an array of size 3 float a[5]; float b[] = a; Move the unsized array check to after the initializer has been processed. If the array is still unsized, generate the error. This should have no effect in GLSL ES 1.00 because, as previously mentioned, array initializers are not allowed. Fixes piglit "glsl-es-3.00 compiler array-sized-by-initializer.vert". Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "9.1 9.2" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 42624b1c8145375f987e380bb78456658f845a17)
2013-08-13glx: Generate GLXBadDrawable when drawable is zeroIan Romanick1-2/+12
Fixes piglit glx-query-drawable-GLXBadDrawable. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com> Cc: "9.2" <mesa-stable@lists.freedesktop.org> (cherry picked from commit d5aee174b88878e6d47dc1fadd3935f535fd85f0)
2013-08-13mesa: Use _mesa_detach_renderbuffer when deleting a textureIan Romanick2-20/+48
The functional change is that now invalidate_framebuffer is called if the texture is actually detached from one of the currently bound FBOs. Previously this was only done for renderbuffers. The remaining changes make the texture delete path look more similar to the renderbuffer delete path. This includes adding relevant spec quotations to justify the behavior. Fixes piglit fbo-incomplete "delete texture of bound FBO" test. v2: Move 'fb->Attachment[i].Texture == att' check from previous patch to this patch... where it was intended to be in the first place. Noticed by Chad. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com> Cc: "9.2" <mesa-stable@lists.freedesktop.org> (cherry picked from commit ef83bd2b9581c680439a5d22979c2f1b49b2834d)
2013-08-13mesa: Make detach_renderbuffer available outside fbobject.cIan Romanick2-9/+38
Also add a return value indicating whether any work was done. This will be used by the next patch. v2: Move 'fb->Attachment[i].Texture == att' check to the next patch... where it was intended to be in the first place. Noticed by Chad. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com> Cc: "9.2" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 438cc6bc49d109f9ddeed6a741c4f0b8f1c4ffe2)
2013-08-13meta: Don't call _mesa_Ortho with width or height of 0Ian Romanick1-3/+8
Fixes failures in oglconform fbo mipmap.manual.color, mipmap.manual.colorAndDepth, mipmap.automatic, and mipmap.manualIterateTexTargets subtests. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com> Cc: "9.2" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 341fb93c162052e0b1eff7f5e53c49aba498ee9a)
2013-08-13r600g/sb: use MULADD workaround on R7xx for MULADD_IEEEVadim Girlin1-1/+2
Looks like the same issue that was seen with MULADD in trans slot on R7xx also affects MULADD_IEEE (maybe all OP3 instructions and MULADD is just a most frequently used?). So the workaround is to not allow affected instructions to be placed into the trans slot. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=67927 Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com> Cc: "9.2" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 17bb96b03d340c0aee8e1a332fdcd695e9179486)
2013-08-09glsl: Don't allow const on out or inout function parametersIan Romanick1-0/+15
Fixes piglit tests const-inout-parameter.frag and const-out-parameter.frag. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Cc: "9.2" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 58948981480c1fe93a171373c7676761e4d0b41e)
2013-08-09r600g: disable GPUVM by defaultAlex Deucher1-1/+1
Cayman and trinity systems still seem to suffer from stability problems with GPUVM. This also fixes compute on these asics. It can still be enabled for testing by setting env var RADEON_VA=true. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=65958 Signed-off-by: Alex Deucher <alexander.deucher@amd.com> CC: "9.2" <mesa-stable@lists.freedesktop.org> CC: "9.1" <mesa-stable@lists.freedesktop.org> Reviewed-by: Christian König <christian.koenig@amd.com> (cherry picked from commit c88783047e2a0faa39d6f3ac6fbd3f26a480d5d3)
2013-08-09egl: Do not export private symbolsChad Versace5-0/+5
libEGL was incorrectly exporting *all* symbols, public and private. This patch adds -fvisibility=hidden to libEGL's linker flags to ensure that only symbols annotated with __attribute__((visibility("default"))) get exported. Sanity-checked with libEGL's builtin DRI2 driver and the i965 DRI driver by running Piglit on X/EGL and by running weston-gears on Weston as an X client. Sanity-checked with libEGL's Gallium driver (which is not built-in) and the swrast Gallium driver by running es2gears_x11. Kristian reviewed the symbol diff in `nm libEGL.so`. CC: "9.2" <mesa-stable@lists.freedesktop.org> CC: Ian Romanick <idr@freedesktop.org> Acked-by: Kristian Høgsberg <krh@bitplanet.net> Reviewed-by: Jakob Bornecrantz <jakob@vmware.com> Signed-off-by: Chad Versace <chad.versace@linux.intel.com> (cherry picked from commit 2c2e64edaba0f6aeb181ca5b51eb8dea8e9b39f9)
2013-08-09i965: Remember to call intel_prepare_render() before blitting.Kenneth Graunke1-0/+5
Otherwise, blits to the window system buffer may cause crashes, since dst_irb->mt may be NULL. This code is lifted straight out of brw_blorp_framebuffer()'s try_blorp_blit() helper. Fixes crashes in Piglit's fbo-sys-blit on systems without BLORP. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=65919 Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <idr@freedesktop.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com> Cc: "9.2" <mesa-stable@lists.freedesktop.org> (cherry picked from commit fb3d62fe3d4fc40ba4ad9804d8b6f451316c9ae2)
2013-08-07r300g/compiler/tests: Pass the required LDFLAGS when building the test programTom Stellard1-1/+2
CC: "9.2 <mesa-stable@lists.freedesktop.org>" (cherry picked from commit d0c13fba172c56c3670bc8bebf453d98e455d482)
2013-08-07r300g/compiler/tests: Fix segfaultTom Stellard3-4/+4
CC: "9.2" <mesa-stable@lists.freedesktop.org> (cherry picked from commit d691ba4d9412b68dd56a300549bafc733e1bb7ee)
2013-08-06nv50: handle pure integer vertex attributesEmil Velikov2-2/+14
And as a side effect fix a crash in the following piglit test: general/attribs GL3 Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Cc: "9.2 and 9.1" mesa-stable@lists.freedesktop.org (cherry picked from commit 07c8f7a6f8dfe724c1ae92ec45dd04532b6fd453)
2013-08-06mesa: Generate a renderbuffer wrapper even if the texture has no imageIan Romanick1-2/+3
This prevents a segfault in check_begin_texture_render when an FBO is rebound while in this state. This fixes the piglit test fbo-incomplete-invalid-texture. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "9.1 9.2" mesa-stable@lists.freedesktop.org (cherry picked from commit 2f9fe2d80a35b8857682771fddbee628213da7b3)
2013-08-06mesa: Validate the layer selection of an array texture tooIan Romanick1-4/+30
Previously only the slice of a 3D texture was validated in the FBO completeness check. This fixes the failure in the 'invalid layer of an array texture' subtest of piglit's fbo-incomplete test. v2: 1D_ARRAY textures have Depth == 1. Instead, compare against Height. v3: Handle CUBE_MAP_ARRAY textures too. Noticed by Marek. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "9.1 9.2" mesa-stable@lists.freedesktop.org (cherry picked from commit 25281fef0f480260c2e180e70af3eafdd5ecc9cd)
2013-08-06mesa: Don't call driver RenderTexture for invalid zoffsetIan Romanick1-0/+6
This fixes the segfault in the 'invalid slice of 3D texture' and 'invalid layer of an array texture' subtests of piglit's fbo-incomplete test. The 'invalid layer of an array texture' subtest still fails. v2: Fix off-by-one comparison error noticed by Chris Forbes. Also, 1D_ARRAY textures have Depth == 1. Instead, compare against Height. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> [v1] Cc: "9.1 9.2" mesa-stable@lists.freedesktop.org (cherry picked from commit 41485fea7c6061cca9d2706f39fa425da291b260)
2013-08-06mesa: Don't call driver RenderTexture for really broken texturesIan Romanick1-2/+20
This fixes the segfault in the '0x0 texture' subtest of piglit's fbo-incomplete test. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "9.1 9.2" mesa-stable@lists.freedesktop.org (cherry picked from commit fb49713f8ed099559d255403dc1065a06305e0d8)
2013-08-06mesa: Remove stray debug printfs in attachment completeness codeIan Romanick1-2/+0
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Cc: "9.1 9.2" mesa-stable@lists.freedesktop.org (cherry picked from commit 0c3dbd689b3269c605ee07589a35af9147db5fe0)
2013-08-06mesa: Treat glBindFramebuffer and glBindFramebufferEXT more correctlyIan Romanick3-12/+20
Allow user-generated names for glBindFramebufferEXT on desktop GL. Disallow its use altogether for core profiles. Names bound with glBindFramebuffer in desktop OpenGL are still (incorrectly) shared across the share group instead of being per-context. This gets us a bit closer to being strictly conformant. v2: Disallow glBindFramebufferEXT in 3.1 by not installing it in the dispatch table. Suggested by Jordan. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> [v1] Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> [v1] Cc: mesa-stable@lists.freedesktop.org (cherry picked from commit 4a9522a5a0c11b6e162188337fd5938f9e2695fd)
2013-08-06mesa: Treat glBindRenderbuffer and glBindRenderbufferEXT correctlyIan Romanick3-8/+19
Allow user-generated names for glBindRenderbufferEXT on desktop GL. Disallow its use altogether for core profiles. v2: Disallow glBindRenderbufferEXT in 3.1 by not installing it in the dispatch table. Suggested by Jordan. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> [v1] Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> [v1] Cc: mesa-stable@lists.freedesktop.org (cherry picked from commit 97965e87fc0771a99c16b639caed01e5d0b64353)
2013-08-06mesa: Disable GL_EXT_framebuffer_object in core profiles and OpenGL 3.1Ian Romanick1-1/+1
GL_EXT_framebuffer_object differs from GL_ARB_framebuffer_object in ways that we can't and don't implement in core profiles. Exposing it is a lie, so we shouldn't do that. It's possible the some other GL_EXT_framebuffer_* extensions should be disabled, but it's not quite so clear cut. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (cherry picked from commit b55c1638ad0da8980837376e44cffa41bb47b9d1)
2013-08-06Makefile.am: Remove api_exec_es* from EXTRA_FILES.Matt Turner1-6/+0
These files were removed in commits a0102154 and a8ab7e33. Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Andreas Boll <andreas.boll.dev@gmail.com>
2013-08-06st/dri: add a new driconf option disable_shader_bit_encoding for UnigineMarek Olšák7-2/+21
Now Unigine Heaven 3.0 finally works with r600g. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com> (cherry picked from commit 7568a89500c35f14cbd397f87c77acc915afc672)
2013-08-06mesa,glsl,st/dri: add a new driconf option force_glsl_version for UnigineMarek Olšák9-8/+64
See documentation in mtypes.h. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> (cherry picked from commit 0f6a7cb00c86fbdb415b01450bb1ece8cfe1e31d)
2013-08-06driconf: enable app-specific workarounds for all driversMarek Olšák2-2/+6
They were only enabled for i965. Note that drirc must be installed in /etc. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> (cherry picked from commit 7f2f804c75f6c7451c3630cb48e4675686bd68a7)
2013-08-06st/dri: remove more unused driconf optionsMarek Olšák1-6/+1
vblank_mode is read by dri_util.c and falls under the "dri2" driver name, which is not connected to the actual Mesa/Gallium driver in any way. Reviewed-by: Brian Paul <brianp@vmware.com> (cherry picked from commit 772070527f6a6db72505575d6571470280a131ab)
2013-08-06st/dri: implement the driconf option force_s3tc_enable properlyMarek Olšák6-21/+24
Reviewed-by: Brian Paul <brianp@vmware.com> (cherry picked from commit 83dbe61ea4308638f1c041d2f550f0f719e36967)