| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=36651
NOTE: This is a candidate for the 7.10 branch.
(cherry picked from commit de1df26b5c11a45f2b1ff2ddc7b8ec764356aa94)
|
|
|
|
|
| |
NOTE: this is a candidate for the 7.10 branch.
(cherry picked from commit 355944087365a963d01deb5fcd6727dfd5360470)
|
|
|
|
|
|
|
|
|
|
| |
Fixes piglit:
- NV_conditional_render/clear
(cherry picked from commit 76056510bcd35b6b5607b572c0c0ff47b5c5e7e2)
Conflicts:
src/gallium/drivers/r300/r300_blit.c
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
From now on, depth test is always enabled in hardware.
If depth test is disabled in Gallium, the hardware Z function is set to ALWAYS.
If there is no zbuffer set, the colorbuffer0 memory is set as a zbuffer
to silence the CS checker.
This fixes piglit:
- occlusion-query-discard
- NV_conditional_render/bitmap
- NV_conditional_render/drawpixels
- NV_conditional_render/vertex_array
(cherry picked from commit f76787b3eae3f0b8af839fabfb24b57715a017f6)
Conflicts:
src/gallium/drivers/r300/r300_state.c
Squashed with cherry-picked b1246cf13bc4e301b499a95d33e0cab26655fed5.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If the wrap R (3rd) mode is set to CLAMP or CLAMP_TO_BORDER and the texture
isn't 3D, r300 always samples the border color regardless of texture
coordinates.
I HATE THIS HARDWARE.
NOTE: This is a candidate for the 7.10 branch.
(cherry picked from commit da8b4c07986e202b0596b729a5eec31c9aec5fcc)
Conflicts:
src/gallium/drivers/r300/r300_state_derived.c
|
|
|
|
|
|
|
|
|
| |
NOTE: This is a candidate for the 7.10 branch.
(cherry picked from commit 578d4539ba72a9f52e0cb3f615bb04bf9407b574)
Conflicts:
src/gallium/drivers/r300/r300_render.c
|
|
|
|
|
| |
Signed-off-by: Jeremy Huddleston <[email protected]>
(cherry picked from commit 6ea70600b9dc76662360eddb41ff658e8ee1aaff)
|
|
|
|
|
|
|
| |
Everything should be resolved through glapi.
Signed-off-by: Jeremy Huddleston <[email protected]>
(cherry picked from commit cebdffaa2a11ef499383a17956c936791e284343)
|
|
|
|
|
| |
Signed-off-by: Jeremy Huddleston <[email protected]>
(cherry picked from commit 22c320aa2c459474a0d220a40b849bf7e4864251)
|
|
|
|
|
| |
Signed-off-by: Jeremy Huddleston <[email protected]>
(cherry picked from commit e5d241ddb231758e0a0f41eee28435d170d583c0)
|
|
|
|
|
| |
Signed-off-by: Jeremy Huddleston <[email protected]>
(cherry picked from commit d563009cd1134557178ddddc29d45b664e58bbed)
|
|
|
|
|
|
|
|
|
|
|
| |
See https://bugs.freedesktop.org/show_bug.cgi?id=29162
Signed-off-by: Jeremy Huddleston <[email protected]>
This commit squashes three cherry-picks:
(cherry picked from commit 5d35343d12ab462100c9eec50a579b73463e465a)
(cherry picked from commit 7c5f37c032231ad144a8a5c5a0b18f3e26c0aea7)
(cherry picked from commit 2ee5272e1671aff8c8d9e0c12bf37ed006717283)
|
|
|
|
|
|
|
|
|
|
|
| |
This reverts portions of 6849916170c0275c13510251a7b217c20f2b993e that caused
the darwin config to fail to build due to missing implementations in that
commit.
See https://bugs.freedesktop.org/show_bug.cgi?id=29162
Signed-off-by: Jeremy Huddleston <[email protected]>
(cherry picked from commit 1885cf27c9c4642a049c60a8236cb84735cb9eba)
|
|
|
|
|
|
|
| |
Remove a redundant ifndef GLX_USE_APPLEGL
Signed-off-by: Jeremy Huddleston <[email protected]>
(cherry picked from commit 3843bbcb4ca4de232dbae6ba3ae619ddfc93508b)
|
|
|
|
|
| |
Signed-off-by: Jeremy Huddleston <[email protected]>
(cherry picked from commit 8593bb32eae5368c1ba52504133b0bf200bf8e74)
|
|
|
|
|
|
|
|
| |
Fixes regression introduced by: ab434f6b7641a64d30725a9ac24929240362d466 and
c356f5867f2c1fad7155df538b9affa8dbdcf869
Signed-off-by: Jeremy Huddleston <[email protected]>
(cherry picked from commit 7cdf969527fa6d753ad2eb3dd971fe16725eb440)
|
|
|
|
|
|
|
| |
Fixes regression introduced by: c356f5867f2c1fad7155df538b9affa8dbdcf869
Signed-off-by: Jeremy Huddleston <[email protected]>
(cherry picked from commit 279e471750e3ee6a4841ebf16ef2d038e1c12077)
|
|
|
|
|
|
|
| |
Fixes regression introduced by: 6ddf66e9230ee862ac341c4767cf6b3b2dd2552b
Signed-off-by: Jeremy Huddleston <[email protected]>
(cherry picked from commit b7f0ed8444544b7fc927823a903db93ebf723cad)
|
|
|
|
|
|
|
| |
Fixes regression introduced by: c491e585e43d48a2aeec96ccc4008da6c443fb42
Signed-off-by: Jeremy Huddleston <[email protected]>
(cherry picked from commit 488d6c739f5b6cdfa2c670322057c699644d4e52)
|
|
|
|
|
|
|
| |
Fixes regression introduced by: c356f5867f2c1fad7155df538b9affa8dbdcf869
Signed-off-by: Jeremy Huddleston <[email protected]>
(cherry picked from commit 22613d1670e3aafcfd3b95191b908a0adabe3eb9)
|
|
|
|
|
|
|
| |
Fixes regression introduced by: 6ddf66e9230ee862ac341c4767cf6b3b2dd2552b
Signed-off-by: Jeremy Huddleston <[email protected]>
(cherry picked from commit bb621cb61e0c6d7fcd06df5a77c75efe5c76926d)
|
|
|
|
|
|
|
| |
Fixes regression introduced by: 65d98e25770487456eb3d7eb8ec3ec8272f170b1
Signed-off-by: Jeremy Huddleston <[email protected]>
(cherry picked from commit 4c9bab78a118953baf307e31cd53e731299f0151)
|
|
|
|
|
| |
Signed-off-by: Jeremy Huddleston <[email protected]>
(cherry picked from commit 8e89d0bea7df553a6c937aaa87b1a3c179f69599)
|
|
|
|
|
| |
And fix a couple logic errors in the put_*_generic() functions.
(cherry picked from commit 7ca38f5d973cf93bf19e27f3f24c0896e43b16e6)
|
|
|
|
|
|
|
|
|
|
|
|
| |
OpenGL 4.0 Compatibility, page 449:
If the value of FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE is NONE, no
framebuffer is bound to target. In this case querying pname FRAMEBUFFER_-
ATTACHMENT_OBJECT_NAME will return zero, and all other queries will generate
an INVALID_OPERATION error.
Reviewed-by: Chad Versace <[email protected]>
(cherry picked from commit b9e9df78a03edb35472c2e231aef4747e09db792)
|
|
|
|
|
|
|
| |
I couldn't find this being required by the spec.
Reviewed-by: Brian Paul <[email protected]>
(cherry picked from commit d69dc2e20346397f4734a0760554a51fb4fbb3c0)
|
|
|
|
|
|
|
|
|
|
| |
This reverts what remains of commit
28bab24e1698843e27d27204a1117066e7ffeabb. It was garbage, trying to
use a MESA_FORMAT enum as a preprocessor token, and I don't know how I
thought it was even tested.
Reviewed-by: Brian Paul <[email protected]>
(cherry picked from commit bc57df03568e9e1f05b9d29df8e3a7fe58d5a196)
|
|
|
|
|
|
|
|
| |
Fixes:
ARB_texture_rg/fbo-alphatest-formats
Reviewed-by: Brian Paul <[email protected]>
(cherry picked from commit 73f07004811a2522b45179c74cd9a6d6d2e5c578)
|
|
|
|
|
|
|
|
|
|
| |
The GL_RED and GL_RG were tricking this code into executing, but it's
totally unprepared for a 16-bit channel and just rescaled the values
down to 0. We don't have anything with <8bit channels alongside >8bit
channels, so disabling it should be safe.
Reviewed-by: Brian Paul <[email protected]>
(cherry picked from commit 2b624634dda23d3b94045fb07aea558df39b48ff)
|
|
|
|
|
|
|
|
| |
This will replace the current (broken by trying to use an enum in the
preprocessor) spantmp2.h support I wrote for the intel driver.
Reviewed-by: Brian Paul <[email protected]>
(cherry picked from commit f0471d904cf5c03ecf2528268a116e4f147cd3c1)
|
|
|
|
|
| |
Reviewed-by: Brian Paul <[email protected]>
(cherry picked from commit a52803e1087749bfa571c29fc4c1a73fa9b7bf8e)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a squash of the following two commits:
mesa: Use _mesa_get_format_bytes to refactor out the RB get_pointer_*
Reviewed-by: Brian Paul <[email protected]>
(cherry picked from commit 6ab9889a2704304a45b4da5b28840af08f6f42c5)
mesa: Fix return type of _mesa_get_format_bytes() (#37351)
Despite that negative values aren't sensible here, making this unsigned
is dangerous. Consider get_pointer_generic, which computes a value of
the form:
void *base + (int x * int stride + int y) * unsigned bpp
The usual arithmetic conversions will coerce the (x*stride + y)
subexpression to unsigned. Since stride can be negative, this is
disastrous.
Fixes at least the following piglit tests on Ironlake:
fbo/fbo-blit-d24s8
spec/ARB_depth_texture/fbo-clear-formats
spec/EXT_packed_depth_stencil/fbo-clear-formats
NOTE: This is a candidate for the 7.10 branch.
Reviewed-by: Chad Versace <[email protected]>
Signed-off-by: Adam Jackson <[email protected]>
(cherry picked from commit e8b1c6d6f55f5be3bef25084fdd8b6127517e137)
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since we're using GTT mappings now (no manual detiling), there's
really nothing special to accessing these buffers, other than needing
the new RowStride field of gl_renderbuffer to accomodate padding.
Reduces the driver size by 2.7kb, and improves glean depthStencil
performance 3-10x (!)
Reviewed-by: Brian Paul <[email protected]>
(cherry picked from commit 0778fdb002b000e241b042ad65b6da6dd8480454)
|
|
|
|
|
| |
Reviewed-by: Brian Paul <[email protected]>
(cherry picked from commit 9f164823c79bf933bf88217894129dc2eae0cbed)
|
|
|
|
|
|
|
|
|
|
| |
This will allow some drivers to reuse the core renderbuffer.c get/put
row functions in place of using the spantmp.h macros. Note that
unlike textures, we use a signed integer here to allow for handling
FBO orientation.
Reviewed-by: Brian Paul <[email protected]>
(cherry picked from commit 155200c15431f8364114d9a37ec527af81c773a5)
|
|
|
|
|
|
|
|
|
| |
Everything appears to already be in place for this. Fixes aborts in:
ARB_texture_rg/fbo-alphatest-formats-float
ARB_texture_rg/fbo-blending-formats-float.
Reviewed-by: Brian Paul <[email protected]>
(cherry picked from commit 641dd899bd485c194c20a871633797a47e4f912d)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The _mesa_base_fbo_format variant doesn't handle some texture
internalformats, such as "3".
Fixes:
fbo-blending-formats.
fbo-alphatest-formats
EXT_texture_sRGB/fbo-alphatest-formats
Reviewed-by: Brian Paul <[email protected]>
(cherry picked from commit cd3568c329cff16333455fa2228a7c27b261cf05)
|
|
|
|
|
|
|
|
|
|
|
|
| |
We were letting any old operand through, which generally resulted in
assertion failures later.
Fixes array-logical-xor.vert.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
(cherry picked from commit 756c262756b2434efeb2c2a33a180fda0757a6e5)
|
|
|
|
|
|
|
|
|
|
|
|
| |
This prevents later errors (including an assertion failure) from
cascading the failure.
Fixes invalid-equality-04.vert.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=33303
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
(cherry picked from commit 175829f1a8ab0df7594131cc569462e45c1974ec)
|
|
|
|
|
|
|
|
|
|
|
|
| |
We just do the AST-to-HIR processing, and only push the instructions
if needed in the constant false case.
Fixes glslparsertest/glsl2/logic-02.frag
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
(cherry picked from commit 9e04b190b5f59c5b375645f5756a6edd98a7f90c)
|
|
|
|
|
|
|
|
|
|
|
|
| |
We just do the AST-to-HIR processing, and only push the instructions
if needed in the constant true case.
Fixes glslparsertest/glsl2/logic-01.frag
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
(cherry picked from commit 7ec0c9789669ac88fcdd66c562e6d58281b477ce)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
By always using a boolean, we should generally avoid further
complaints. The failure case I see is logic_not, where the user might
understandably make the mistake of using `!' on a boolean vector (like
a piglit case did recently!), and then get a further complaint that
the new boolean type doesn't match the bvec it gets assigned to.
Fixes invalid-logic-not-06.vert (assertion failure when the bad type
ends up in an expression and ir_constant_expression gets angry).
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=33314
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
(cherry picked from commit 01822706ec2c2501a2cd2431a90c56b334b79a5c)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Prior to Gen6, we use the GS for breaking down quads, quad-strips,
and line loops. On Gen6, earlier stages already take care of this,
so we never need the GS.
Since this code is likely completely untested, remove it for now.
We can write new code when enabling real geometry shaders.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
(cherry picked from commit 35b3f597bd1729da4483857cc0e88e81fb2a2419)
|
|
|
|
|
|
|
|
|
| |
This should make it easier to cross-reference the code and hardware
documentation, as well as clear up any confusion on whether constants
like CMD_3D_WM_STATE mean WM_STATE (pre-gen6) or 3DSTATE_WM (gen6+).
This does not rename any pre-gen6 defines.
(cherry picked from commit e31defc825ee94f1d1092e277954abad7097c552)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
unorm1616
According to https://bugs.freedesktop.org/show_bug.cgi?id=34280
commit 5d1387b2da3626326410804026f8b92f1a121fdc causes the font corruption
problems people have been seeing under various apps and gnome-shell on r200
cards.
This commit changed (loosened) the check for using the memcpy path in the
former al88 / al1616 texstore functions, which are now also used to
store rg texures. This patch restores the old strict check in case of
al textures. I've no idea why this fixes things, since I don't know the
code in question at all. But after seeing the bisect in bfdo34280 point
to this commit, I gave this fix a try and it fixes the font issues seen on
r200 cards.
[airlied:
r200 has no native working A8, so it does an internal storage format of AL88
however srcFormat == internalFormat == ALPHA when we get to this point,
so it copies, but it wants to store into an AL88 not ALPHA so fails,
I'll also push a piglit test for this on r200].
Many thanks to Nicolas Kaiser who did all the hard work of tracking this down!
Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
(cherry picked from commit e338a1b0cea94f8c57968b01eebd795c6c8ce74e)
|
|
|
|
|
|
| |
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
(cherry picked from commit a7fa203f0d645bdb06b3cb345ab1a0ccf4e62fe3)
|
|
|
|
|
| |
Signed-off-by: Henri Verbeet <[email protected]>
(cherry picked from commit a26121f37530619610a78a5fbe5ef87e44047fda)
|
|
|
|
|
| |
Signed-off-by: Henri Verbeet <[email protected]>
(cherry picked from commit a75de67c51e9124a7c3846b4110552ea28c60349)
|
|
|
|
|
|
|
| |
NOTE: This is a candidate for the 7.10 branch.
Signed-off-by: Henri Verbeet <[email protected]>
(cherry picked from commit 158d42c8b08411d761fa40299f3f29027ad3905f)
|
|
|
|
|
|
|
|
|
|
| |
The spec doesn't state it should be an error, but. We have this piglit test
useprogram-inside-begin that passes with this commit. No idea what's correct.
NOTE: This is a candidate for the 7.10 branch.
Reviewed-by: Brian Paul <[email protected]>
(cherry picked from commit 29ceeeba2004f71ccb91ce67f518dc1bf0ca6b17)
|