| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
There was a DrawBuffer/ReadBuffer typo and we were neglecting to invert
the texture coords when copying from a window to an FBO.
Plus, add some surface dump/debug code (disabled).
(cherry picked from commit 34f02071618624263eba839b5aeb930d0e794078)
|
|
|
|
|
|
| |
We weren't inverting the textured quad when drawing into an fbo.
(cherry picked from commit 8d3f629a13afb0d6acafc7a007972fdc5efe6847)
|
|
|
|
| |
noticed by fredrikh on IRC.
|
|
|
|
|
|
|
|
|
| |
There's no reason to release the renderbuffer from the framebuffer object
or release the gallium surface in this function (they're reference counted).
In fact, we don't want to do this because we may later use the texture as a
pixel source (ex: glBlitFramebuffer) and need the surface.
Fixes fd.o bug 26923 and is part of the fix for bug 26932.
|
| |
|
|
|
|
|
| |
Allow render to texture for X8_Z24 and Z24_X8 formats.
Replace big if/else with switch, etc.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
R300 hw doesn't support sampling from Z24_S8 or S8_Z24 formats.
|
| |
|
|
|
|
| |
Fixes some relocation failures
|
| |
|
| |
|
| |
|
|
|
|
| |
Fixes two wine d3d9 unit tests
|
| |
|
|
|
|
| |
_tnl_UpdateFixedFunctionProgram is already called in r300_draw.c
|
| |
|
|
|
|
| |
MESA_FORMAT_Z16 has no stencil bits.
|
|
|
|
|
|
|
|
|
| |
Previously the code was erroneously using the stencil size of the
context instead of the stencil size of the DrawBuffer. With FBOs
these may be different. As a result, clearing the stencil buffer of
an FBO bound to a context that doesn't have stencil would fail.
Signed-off-by: Ian Romanick <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
If the visual doesn't have an accumulation buffer, the renderbuffer
passed into _swrast_clear_accum_buffer will be NULL anyway. There is
no reason the check the visual. Moreover, the test erroneously checks
the context's visual instead of the visual of the current DrawBuffer.
With FBOs these may be different.
Signed-off-by: Ian Romanick <[email protected]>
|
|
|
|
|
|
|
|
| |
In the presence of FBOs, the visual of the context may not match the,
possibly fake, visual of the current ReadBuffer. Note that the caller
of adjust_colors correctly uses the visual of the ReadBuffer.
Signed-off-by: Ian Romanick <[email protected]>
|
|
|
|
| |
Signed-off-by: Ian Romanick <[email protected]>
|
|
|
|
|
|
|
|
| |
The whole structure is 836 bytes, but if only the first one or two
samplers are used (as is common), the part that matters is only 56 or
108 bytes. By using just that subset as the key (since the key size
is also part of the key), we improve firefox-talos-gfx performance by
1%.
|
| |
|
| |
|
|
|
|
|
| |
Since it's a BO pointer, it already lives outside the key in
brw->wm.sdc_bo[] which is used for sampler state lookup and setup.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This saves 6.6KB on the 965 driver, and appears to speed
firefox-talos-gfx up by 1-2%. Unlike many other asserts in the
driver, when we make a mistake that would trigger one of these it
generally shows up all the time for developers, so turning it off for
release seems fine.
|
|
|
|
| |
This manages to cut down another 3800 bytes.
|
|
|
|
| |
Cuts another 1800 bytes from the driver.
|
|
|
|
| |
Shaves 800 bytes off the driver.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes fdo bug 26128.
The spec mandates that VOLATILE is returned from
ObjectPurgeable(VOLATILE) irrespective of the actual status of the
object upon completion of marking it purgeable.
Conform to the spec, even though it seems wrong.
Signed-off-by: Chris Wilson <[email protected]>
|
| |
|
| |
|
|\
| |
| |
| | |
Acked-by: Brian Paul <[email protected]>
|
| |
| |
| |
| |
| |
| | |
Implement support for purgeable objects by using the GEM madvise ioctl.
Signed-off-by: Chris Wilson <[email protected]>
|
| |
| |
| |
| | |
Signed-off-by: Chris Wilson <[email protected]>
|
| | |
|
| |
| |
| |
| | |
Signed-off-by: Chris Wilson <[email protected]>
|
| |
| |
| |
| |
| | |
This generates the entrypoints and dispatches for GL_OES_EGL_image.
There is no real support yet.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
negative constant."
This reverts commit a05fdbcb719ac64e6be842372813f0f4ca2f4f93.
Removing the comparison is wrong. The comparison with -1 should be changed
to another value (probably PROGRAM_UNDEFINED) along with another
change in the shader assembler.
Conflicts:
src/mesa/shader/prog_execute.c
|
| |
| |
| |
| |
| |
| |
| | |
Shaves 60k off the driver from removing the broken spans code. This
means we now require 2.6.29, which seems fair given that it's a year
old and we've removed support for non-KMS already in the last release
of 2D.
|
| |
| |
| |
| | |
Shaves 5.5k off of the driver.
|