| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Ian Romanick <[email protected]>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Substantially increases performance in GLBenchmark PRO:
- 320x240 => 3.28x
- 1920x1080 => 1.47x
- 2560x1440 => 1.27x
The LD message ignores the sampler unit index and SAMPLER_STATE pointer,
instead relying on hard-wired default state. Thus, there's no need to
worry about running out of sampler units or providing SAMPLER_STATE;
this small patch should be all that's required.
NOTE: This is a candidate for release branches.
(It requires the preceding commit to compile.)
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
(cherry picked from commit 259b65e2e7938de4aab323033cfe2b33369ddb07)
|
|
|
|
|
|
|
|
|
| |
brw_SAMPLE is full of complex workarounds for original Broadwater
hardware, and I'd rather avoid all that for my next Ivybridge patch.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
(cherry picked from commit 5f4575d42fdaaf671d4b3cdcf2c733ad9d35d339)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We always access pull constant buffers using the message types "OWord
Block Read" or "OWord Dual Block Read". According to the Sandy Bridge
PRM, Vol 4 Part 1, pages 214 and 218, when using these messages:
"the surface pitch is ignored, the surface is treated as a
1-dimensional surface. An element size (pitch) of 16 bytes is
used to determine the size of the buffer for out-of-bounds
checking if using the surface state model."
Previously we were setting the pitch for pull constant buffers to the
size of the whole constant buffer--this made no sense and would have
led to incorrect behavior if it were not for the fact that the pitch
is ignored.
For clarity, this patch sets the pitch for pull constant buffers to 16
bytes, consistent with the hardware's behavior.
v2: Clarify the meaning of the ignored values by writing them as (16 - 1).
Reviewed-by: Eric Anholt <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
(cherry picked from commit fcd5af4a916b4ba7860ba27eb47404934bde0d08)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When ARB VAOs are used, glPopClientAttrib does not resurrect a deleted
VAO or VBO. This difference between the two spec is, unfortunately,
not very well spelled out in the specs.
Fixes oglc vao(advanced.pushPop.deleteVAO) and
vao(advanced.pushPop.deleteVBO) tests.
NOTE: This is a candidate for release branches.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
(cherry picked from commit 34c353ce463960afdf64fa2be1f155b8b7f6c70c)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
There are more differences between Apple and ARB than just requiring
that all arrays be stored in VBOs. Additional uses will be added in
following commits.
Also, set the flag at Bind time instead of Gen time. The ARB_vao spec
specifies that behavior.
NOTE: This is a candidate for release branches.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
(cherry picked from commit 09639901530da7df7347428512c2bee86af1ef8e)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a hack to work around drivers such as i965 that:
- Set _MaintainTexEnvProgram to generate GLSL IR for
fixed-function fragment processing.
- Don't call _mesa_ir_link_shader to generate Mesa IR from the
GLSL IR.
- May use swrast to handle glDrawPixels.
Since _mesa_ir_link_shader is never called, there is no Mesa IR to
execute. Instead do regular fixed-function processing.
Even on platforms that don't need this, the software fixed-function
code is much faster than the software shader code.
NOTE: This is a candidate for the 8.0 branch.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=44749
(cherry picked from commit 9be3be3c6654da18466626c2d45ff4d06b5fb953)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
At least one place, the _mesa_need_secondary_color function in
state.h, uses this to make decisions. The next patch in this series
will add another dependency. Ideally, this field would go away and be
replace by a flag or something.
NOTE: This is a candidate for the 8.0 branch.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
(cherry picked from commit 34db7a8c1e775aaefad7952133e087f1c1a569f6)
|
|
|
|
| |
(cherry picked from commit ba151a333be7a23266b23ee6f65669bb19221546)
|
|
|
|
|
| |
As with commit aed5c8299fe47b8e1728f8140d069bc89d3fa947
(cherry picked from commit cf386f0a2ba3efcfd6ddbfcbebaf98a9bfa7a29f)
|
|
|
|
| |
(cherry picked from commit 89bb19adb08caaefc01e613e9bbfbdd1f366ddab)
|
|
|
|
| |
(cherry picked from commit 4baf90353dee771e553c552674616b93aedeaecf)
|
|
|
|
|
|
| |
No longer needed since we do all rendering to texture with the buffer
mapping and pixel packing functions.
(cherry picked from commit 9403cc3aba0769dc6925cea3ec20aa95d491f516)
|
|
|
|
|
|
|
|
| |
When we're actually rendering into a texture, map the texture image
instead of the corresponding renderbuffer. Before, we just copied
a pointer from the texture image to the renderbuffer. This change
will make the code usable by hardware drivers.
(cherry picked from commit 1caf698191fb871850311353862eb7fc927f9f9c)
|
|
|
|
|
| |
No longer used anywhere.
(cherry picked from commit 56d83ac4bf0267982554f25c6fdb3c1dd6e14a9c)
|
|
|
|
|
| |
And remove unused nouveau_texture_map/unmap()
(cherry picked from commit 8b8a54afd9b748b7250993393864544ad6961edb)
|
|
|
|
|
|
|
| |
ctx->Driver.MapTexture() always points to _swrast_map_texture().
We're already reaching into swrast from t_vb_program.c anyway.
This will let us remove the ctx->Driver.Map/UnmapTexture() functions.
(cherry picked from commit 4bbab2275f792553f8ed6bcebfe6acc4cb4179c2)
|
|
|
|
| |
(cherry picked from commit bde356a1580f52cae0aaca020a33a6437083a450)
|
|
|
|
|
| |
It always returned True.
(cherry picked from commit 1839a7fc9faae81d32ffc0cdc908b933f4524e28)
|
|
|
|
| |
(cherry picked from commit 6c1e27ba219e41ae2641cca0d3c67462bdba8631)
|
|
|
|
| |
(cherry picked from commit 1da7d6c919e9a6d756b208caa6685bfa1146b543)
|
|
|
|
|
| |
This removes the last of the legacy fields from gl_renderbuffer.
(cherry picked from commit 1888dd52a32e114e7b3796db5a6b44921a2e04d4)
|
|
|
|
| |
(cherry picked from commit becbb643135ddccac5054bf138ca0cc7cc3fff15)
|
|
|
|
| |
(cherry picked from commit 0c1862851f27c428a18ba5509636efcc2f0084f8)
|
|
|
|
| |
(cherry picked from commit 797c18be1f907337ebd85b18ce43dfa0b056f492)
|
|
|
|
| |
(cherry picked from commit c080202db5363a18a759a9a7c82b40ac558c8abe)
|
|
|
|
|
| |
Drivers that rely on swrast need to do this, as with swrast_texture_image.
(cherry picked from commit 9f8ed9d66298e2dc5dff508e3ea723469fe06d93)
|
|
|
|
| |
(cherry picked from commit d16e71eeb47d1e67930f6e86a80dc926468224d9)
|
|
|
|
| |
(cherry picked from commit f2479530b8be3866c234ac759a7fa84e634dd1aa)
|
|
|
|
|
| |
This will let us move the swrast-specific fields out of gl_renderbuffer.
(cherry picked from commit 34988272d9c7a889a26bb8bdcb841d44797a5dd6)
|
|
|
|
|
| |
This will make future changes cleaner and less invasive.
(cherry picked from commit 924de7dc96f4607cb3d833637b5f69f4b9e2a6d0)
|
|
|
|
|
|
| |
To prevent name collision with future swrast_renderbuffer in the swrast
module.
(cherry picked from commit 1048d55d5fa60d17dd99ac7394ff0572500625f9)
|
|
|
|
| |
(cherry picked from commit c45771905f237d9285465dfce955440582ee51e5)
|
|
|
|
| |
(cherry picked from commit 881ef2a9db22cff4c7d07b873d23b0c324da555a)
|
|
|
|
| |
(cherry picked from commit 8696a5210289166ce39d765d771258258400e876)
|
|
|
|
| |
(cherry picked from commit b0f0d7a8118401b209c674804255b5fd9e8c94c0)
|
|
|
|
|
| |
There's no such thing as renderbuffer wrappers anymore.
(cherry picked from commit 59a5b5a193d5d9c5776aa586b34657b6e315479d)
|
|
|
|
| |
(cherry picked from commit ab331140c68d1c157e69ea8e53b44729355fa43c)
|
|
|
|
|
| |
To better indicate that this pointer to the malloc'd memory.
(cherry picked from commit 7a36345f70a0b8ac2d480bb52eb2c74c2be5a978)
|
|
|
|
| |
(cherry picked from commit f6a3979a0444a14c198c10501e9ff13f24625443)
|
|
|
|
| |
(cherry picked from commit f9874feef4d8952df5054bd8e8f4e0deda4ef44f)
|
|
|
|
| |
(cherry picked from commit 1e1b5cb01a10e39d01923e3c7e989c44210950cd)
|
|
|
|
| |
(cherry picked from commit 82846fea4d042466ccfd5b3c86d98e856086cc05)
|
|
|
|
| |
(cherry picked from commit 304f7a132741a528ca6e861a918ef59991874e5f)
|
|
|
|
| |
(cherry picked from commit a4c6dedb27897ae1340983b5d12927e0a9fb2212)
|
|
|
|
| |
(cherry picked from commit f892debdc21d12c40d2b69b4e9efdf527672d3ec)
|
|
|
|
| |
(cherry picked from commit 41869c49421141807ab71cabca4c8a07611f6a64)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is a squash of:
dri/swrast: remove obsolete GetRow/PutRow code
(cherry picked from commit cb5fa9ea624574909bf57f9e1ad190a440d59dc2)
and
dri/swrast: remove obsolete swrast_span.c file from source list
(cherry picked from commit a9bf149e7f699d05bcf31dff54c4b4cf78018dd0)
Conflicts:
src/mesa/drivers/dri/swrast/Makefile.sources
|
|
|
|
| |
(cherry picked from commit 2873555a76a7358db053c3a7b121b489f8df9bb1)
|
|
|
|
| |
(cherry picked from commit 2e80c7e5bf822e3b9efd145d33badcf4f14504ff)
|