- Jan 28, 2012
-
-
Ian Romanick authored
Signed-off-by:
Ian Romanick <ian.d.romanick@intel.com>
-
Kenneth Graunke authored
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 <kenneth@whitecape.org> Reviewed-by:
Eric Anholt <eric@anholt.net> (cherry picked from commit 259b65e2)
-
Kenneth Graunke authored
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 <kenneth@whitecape.org> Reviewed-by:
Eric Anholt <eric@anholt.net> (cherry picked from commit 5f4575d4)
-
Paul Berry authored
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 <eric@anholt.net> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org> (cherry picked from commit fcd5af4a)
-
Ian Romanick authored
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 <ian.d.romanick@intel.com> Reviewed-by:
Brian Paul <brianp@vmware.com> (cherry picked from commit 34c353ce)
-
Ian Romanick authored
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 <ian.d.romanick@intel.com> Reviewed-by:
Brian Paul <brianp@vmware.com> (cherry picked from commit 09639901)
-
Ian Romanick authored
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 <ian.d.romanick@intel.com> Reviewed-by:
Brian Paul <brianp@vmware.com> Reviewed-by:
Eric Anholt <eric@anholt.net> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=44749 (cherry picked from commit 9be3be3c)
-
Ian Romanick authored
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 <ian.d.romanick@intel.com> Reviewed-by:
Brian Paul <brianp@vmware.com> Reviewed-by:
Eric Anholt <eric@anholt.net> (cherry picked from commit 34db7a8c)
-
Brian Paul authored
(cherry picked from commit ba151a33)
-
Brian Paul authored
As with commit aed5c829 (cherry picked from commit cf386f0a)
-
Brian Paul authored
(cherry picked from commit 89bb19ad)
-
Brian Paul authored
(cherry picked from commit 4baf9035)
-
Brian Paul authored
No longer needed since we do all rendering to texture with the buffer mapping and pixel packing functions. (cherry picked from commit 9403cc3a)
-
Brian Paul authored
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 1caf6981)
-
Brian Paul authored
No longer used anywhere. (cherry picked from commit 56d83ac4)
-
Brian Paul authored
And remove unused nouveau_texture_map/unmap() (cherry picked from commit 8b8a54af)
-
Brian Paul authored
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 4bbab227)
-
Brian Paul authored
(cherry picked from commit bde356a1)
-
Brian Paul authored
It always returned True. (cherry picked from commit 1839a7fc)
-
Brian Paul authored
(cherry picked from commit 6c1e27ba)
-
Brian Paul authored
(cherry picked from commit 1da7d6c9)
-
Brian Paul authored
This removes the last of the legacy fields from gl_renderbuffer. (cherry picked from commit 1888dd52)
-
Brian Paul authored
(cherry picked from commit becbb643)
-
Brian Paul authored
(cherry picked from commit 0c186285)
-
Brian Paul authored
(cherry picked from commit 797c18be)
-
Brian Paul authored
(cherry picked from commit c080202d)
-
Brian Paul authored
Drivers that rely on swrast need to do this, as with swrast_texture_image. (cherry picked from commit 9f8ed9d6)
-
Brian Paul authored
(cherry picked from commit d16e71ee)
-
Brian Paul authored
(cherry picked from commit f2479530)
-
Brian Paul authored
This will let us move the swrast-specific fields out of gl_renderbuffer. (cherry picked from commit 34988272)
-
Brian Paul authored
This will make future changes cleaner and less invasive. (cherry picked from commit 924de7dc)
-
Brian Paul authored
To prevent name collision with future swrast_renderbuffer in the swrast module. (cherry picked from commit 1048d55d)
-
Brian Paul authored
(cherry picked from commit c4577190)
-
Brian Paul authored
(cherry picked from commit 881ef2a9)
-
Brian Paul authored
(cherry picked from commit 8696a521)
-
Brian Paul authored
(cherry picked from commit b0f0d7a8)
-
Brian Paul authored
There's no such thing as renderbuffer wrappers anymore. (cherry picked from commit 59a5b5a1)
-
Brian Paul authored
(cherry picked from commit ab331140)
-
Brian Paul authored
To better indicate that this pointer to the malloc'd memory. (cherry picked from commit 7a36345f)
-
Brian Paul authored
(cherry picked from commit f6a3979a)
-