- Nov 27, 2011
-
-
Ian Romanick authored
-
Ian Romanick authored
-
- Nov 22, 2011
-
-
Lina Versace authored
intelAllocateBuffer() was oblivious to separate stencil buffers. This patch fixes it to allocate a non-tiled stencil buffer with special pitch, just as the DDX does. Without this, any app that attempted to create an EGL surface with stencil bits would crash. Of course, this affected only environments that used the builtin DRI2 backend, such as Android and Wayland. Fixes GLBenchmark2.1 on Android on gen7. Note: This is a candidate for the 7.11 branch. Tested-by: Louie Tsaie <louie.tsai@intel.com> Signed-off-by: Chad Versace <chad.versace@linux.intel.com> (cherry picked from commit 79653c12) Conflicts: src/mesa/drivers/dri/intel/intel_screen.c
-
Lina Versace authored
I changed the dimensions of the stencil buffer's region, as allocated by the DDX, at xf86-video-intel commit commit 3e55f3e88b40471706d5cd45c4df4010f8675c75 dri: Do not tile stencil buffer But I forgot to make the analogous update to the Intel DRI2 glue in Mesa. This patch makes that update. Surprisingly, the mismatch did not cause any bugs. But the mismatch, if left unfixed, *would* create bugs in the next commit. Note: This is a candidate for the 7.11 branch. Signed-off-by: Chad Versace <chad.versace@linux.intel.com> (cherry picked from commit 50b33560)
-
Lina Versace authored
When calculating the y offset needed for detiling window system stencil buffers, replace the term region->height * 2 + region->height % 2 - 1 with rb->Height - 1 . The two terms are incidentally equivalent due to some out-of-date, incorrect code in the Intel DRI2 glue for DDX. (See intel_process_dri2_buffer_with_separate_stencil(), line ``buffer_height /= 2;``). Note: This is a candidate for the 7.11 branch (only the intel_span.c hunk). Signed-off-by: Chad Versace <chad.versace@linux.intel.com> (cherry picked from commit dc4c3a31) Conflicts: src/mesa/drivers/dri/intel/intel_fbo.c src/mesa/drivers/dri/intel/intel_span.c
-
- Nov 21, 2011
-
-
(cherry picked from commit 5485192f)
-
Brian Paul authored
-
- Nov 18, 2011
-
-
Brian Paul authored
When we do a glReadPixels into the temporary buffer, we don't want to use GL_LUMINANCE, GL_LUMINANCE_ALPHA or GL_INTENSITY since they will compute L=R+G+B which is not what we want. This bug has existed all along but was only exposed by the elimination of the driver hook for glCopyTexImage() in 5874890c. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=39604 Tested-by: Ian Romanick <ian.d.romanick@intel.com> (cherry picked from commit e4fdc952) (cherry-pick note: This patch and the one before it combine to fix CopyTexImage from RGBA window to LA texture. This was believed to already be fixed by commit 296e6b90, but these changes were also necessary.)
-
Brian Paul authored
(cherry picked from commit 5874890c)
-
Ian Romanick authored
-
- Nov 17, 2011
-
-
Ian Romanick authored
-
Ian Romanick authored
-
Ian Romanick authored
-
- Nov 10, 2011
-
-
Emma Anholt authored
A driver trying to set up builtin uniforms is faced with a problem: How do I walk the ir_variable structure (representing an array of structs, or array of matrices, or struct, or whatever), and set up driver structures so that dereference of that uniform gets the corresponding ParameterValues[] entry. The rule in general is that each corresponding vector-sized field of an array of structs is one builtin uniform state slot. i965 relied on another invariant: each state slot has a number of unique channel swizzles corresponding to the number of elements in the field's vector, to avoid needing to walk the glsl_type in parallel to get at vector_elements. All of the builtin uniforms followed this behavior, except for gl_NormalMatrix. That's a mat3 (so 3 vec3s), but it was swizzled as 3 vec4s. Fixes piglit glsl-fs-normalmatrix. Reviewed-by: Paul Berry <stereotype441@gmail.com> (cherry picked from commit cc4ddc3a)
-
Kenneth Graunke authored
It's required for ES 1.0 and 1.1, and isn't specified for ES 2. While the comment says Mesa depends on it internally, removing it from ES2 doesn't seem to regress any Piglit or ES2 conformance tests. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> (cherry picked from commit 5785cd2b)
-
- Nov 05, 2011
-
-
Jose Fonseca authored
Recommend LLVM 2.9, it has been working quite well, and unlike earlier versions, it works out-of-the-box without patches. Update Windows instructions.
-
- Nov 03, 2011
-
-
Yuanhan Liu authored
The PBO only needs to be unmapped if one of the previous calls to _mesa_validate_pbo_* succeeded. In this case, pixels will be non-NULL. Various paths through _mesa_unmap_texmiage_pbo can hit assertion failures or segfaults if the buffer is not mapped. To work around this, move the call to _mesa_unmap_teximage_pbo inside the last 'if (pixels)' block. NOTE: this is just for 7.11 stable branch Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42268
-
- Nov 02, 2011
-
-
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Corbin Simpson <MostAwesomeDude@gmail.com>
-
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Jose Fonseca <jfonseca@vmware.com> (cherry picked from commit 4a3be16f)
-
Marek Olšák authored
This was dead code anyway. (cherry picked from commit 21e3c585)
-
Thomas Fogal authored
I had a colleague hitting issues compiling with an old gcc3.2 system. These patches got them through. Reviewed-by: Brian Paul <brianp@vmware.com> (cherry-picked from commit cbb2b414)
-
- Oct 29, 2011
-
-
Adam Jackson authored
DRI2 supports this now - and already enables it explicitly - but drisw does not and should not. Otherwise toolkits like clutter will only ever SwapBuffers once and wait forever for an event that's not coming. Signed-off-by: Adam Jackson <ajax@redhat.com> (cherry picked from commit 25620eb1)
-
- Oct 27, 2011
-
-
Kenneth Graunke authored
In commit 3e5d3626, Eric added a homebrew workaround to fix GPU hangs in the Mesa "engine" demo and oglc's api-texcoord test. Unfortunately, his PIPE_CONTROL contains a Depth Stall, which necessitates the post-sync non-zero workaround, Fixes GPU hangs in Civilization 4, PlaneShift, Minecraft, Neverwinter Nights, 3DMMES, and hopefully Heroes of Newerth as well. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=40324 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=41096 Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net> Tested-by: Joel <k00_fol@k.kth.se> (Neverwinter Nights) Tested-by: brot <brot@minad.de> (Minecraft) Tested-by: Eric Anholt <eric@anholt.net> (3DMMES) Tested-by: Kenneth Graunke <kenneth@whitecape.org> (Civ 4 & PlaneShift) (cherry-picked from commit 3cc0a7be)
-
- Oct 26, 2011
-
-
Marek Olšák authored
The kernel currently overwrites the flags, but if we stopped doing that, this would break badly. (cherry picked from commit faa16dc4) BTW, this may be an actual fix for very old kernels. https://bugs.freedesktop.org/show_bug.cgi?id=42175 Conflicts: src/gallium/drivers/r600/evergreen_state.c src/gallium/drivers/r600/r600_state.c
-
Brian Paul authored
Passing type == GL_BITMAP returns 0 while error values return -1. This fixes glPolygonStipple being compiled into display lists. (cherry picked from commit 2ce8c355)
-
Brian Paul authored
The spec says GL_INVALID_OPERATION is generated when texture!=0 and textarget is not a legal value. We had this right for the 2D function. (cherry picked from commit ccecc08f)
-
Ben Widawsky authored
After copy buffer on preGEN6, it is necessary to wait for the blit to complete before returning data to the user. This should fix the piglit test: copy_buffer_coherency (pre-GEN6). Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (cherry picked from commit fa351bd2)
-
Emma Anholt authored
The existing error result doesn't appear in the GL 2.1 or 3.2 compatibility specs, and triggers an unexpected GL error in Intel's oglconform when it tries to reset the feedback state after usage so that the "diff the state at error time vs. context init time" code doesn't generate spurious diffs. The unexpected GL error then translates into testcase failure. Brian wants the safety check on buffer = NULL, though, so that people can't as easily set up a broken buffer. (cherry picked from commit 07e5295b)
-
Ian Romanick authored
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Tested-by: Jin Yang <jin.a.yang@intel.com> (cherry picked from commit 24a11309)
-
Ian Romanick authored
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Tested-by: Jin Yang <jin.a.yang@intel.com> (cherry picked from commit 13757f70)
-
Ian Romanick authored
This code was really broken before. A lot of the error checks were done much later (too late), and some of the error checks would fail. The underlying problem is that Mesa doesn't ever keep compressed paletted textures in their original format. The textures are immediately converted to some RGB or RGBA format. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=39991 Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Tested-by: Jin Yang <jin.a.yang@intel.com> (cherry picked from commit 3ebbfc83)
-
Ian Romanick authored
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Tested-by: Jin Yang <jin.a.yang@intel.com> (cherry picked from commit b433e7ba)
-
Ian Romanick authored
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Tested-by: Jin Yang <jin.a.yang@intel.com> (cherry picked from commit a2cab751)
-
Ian Romanick authored
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Tested-by: Jin Yang <jin.a.yang@intel.com> (cherry picked from commit fc0fa16b)
-
Ian Romanick authored
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> Tested-by: Jin Yang <jin.a.yang@intel.com> (cherry picked from commit a454c835)
-
Chia-I Wu authored
Add intelInitExtensionsES1 to enable required and optional GLESv1 extensions. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> (cherry picked from commit 6b9e4b6c)
-
Chia-I Wu authored
We'd like to add intelInitExtensionsES1 to it later. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> (cherry picked from commit 820789ac)
-
- Oct 24, 2011
-
-
Jeremy Huddleston Sequoia authored
glXMakeCurrent(dpy, None, NULL) would not correctly unbind the context causing subsequent GLX requests to fail in peculiar ways http://xquartz.macosforge.org/trac/ticket/514 Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com> (cherry picked from commit 5c44c134)
-
Yuanhan Liu authored
Simply generate GL_INVALID_OPERATION error at display list mode. As explained by Brian, we are going to access PBO data at compile time. No need to defer the error at execution time. Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> (cherry picked from commit 46d5fb57)
-
Yuanhan Liu authored
Wrap _mesa_unpack_bitmap to handle the case that data is stored in pixel buffer object. This would make calling Bitmap with data stored in PBO by display list work. Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com> (cherry picked from commit 02b801c1)
-