Commit Graph

31895 Commits

Author SHA1 Message Date
Ian Romanick ebbec7e4e4 swrast: Adjust colors based on ReadBuffer visual, not context visual
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 <ian.d.romanick@intel.com>
2010-03-05 16:04:59 -08:00
Ian Romanick c67af0628b swrast: Remove stray comment that mentions ctx->Visual
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-03-05 16:04:59 -08:00
Brian Paul 1a0a2b64ca gallivm: checkpoint: code gen for mipmap selection 2010-03-05 16:52:11 -07:00
Brian Paul b5038fdd65 llvmpipe: added code to set texture depth, max mipmap levels info 2010-03-05 16:51:35 -07:00
Brian Paul 7f4b5c5387 gallivm: added methods for getting texture depth, num mipmap levels 2010-03-05 16:50:48 -07:00
Brian Paul 6bc644fe62 gallivm: checkpoint: texture LOD computation code gen 2010-03-05 16:32:09 -07:00
Brian Paul 36a0c4219d gallivm: added field for sampler lod 2010-03-05 16:32:09 -07:00
Eric Anholt 8c8e664f10 i965: Only use the effective subset of the WM sampler key.
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%.
2010-03-05 15:23:30 -08:00
Eric Anholt a232cc59e3 intel: Remove support for the DRI1 TFP extension. 2010-03-05 15:23:30 -08:00
Eric Anholt 20952f0378 i965: Remove the paths for making a const surface object for a NULL BO. 2010-03-05 15:23:30 -08:00
Eric Anholt 9a38f76044 i965: Remove the unused SDC BO pointer from the sampler state key.
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.
2010-03-05 15:23:30 -08:00
Eric Anholt 879ea6f279 i965: Rename SNB brw_*_key structs to gen6_*_key structs. 2010-03-05 15:23:30 -08:00
Eric Anholt 5d18e86971 i965: Pack gen6 blend_state_key structure. 2010-03-05 15:23:30 -08:00
Eric Anholt 855515859e intel: Only do batchbuffer debug if --enable-debug is used.
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.
2010-03-05 15:23:30 -08:00
Eric Anholt 7392002041 intel: Replace batch macro contents with function calls.
This manages to cut down another 3800 bytes.
2010-03-05 15:23:30 -08:00
Eric Anholt 342a7f23bf intel: Move the assertions about reloc delta from the macros to the function.
Cuts another 1800 bytes from the driver.
2010-03-05 15:23:30 -08:00
Eric Anholt 8a9d8bd52a intel: Check that the batch is mapped per BEGIN, not each OUT.
Shaves 800 bytes off the driver.
2010-03-05 15:23:30 -08:00
Eric Anholt f6f5e87679 i965: Try to assign SNB SF inputs to outputs. 2010-03-05 15:23:30 -08:00
Eric Anholt 3b9612645e i965: Fix the SNB SF input size. 2010-03-05 15:23:30 -08:00
Chris Wilson 24f9011276 Always return VOLATILE for ObjectPurgeable(VOLATILE)
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 <chris@chris-wilson.co.uk>
2010-03-05 23:20:45 +00:00
Brian Paul b704a4e8f3 llvmpipe: add pipe_thread_wait() calls
Wait for threads to exit before cleaning up per-thread data.
Fixes hang on context destruction with glean makeCurrent test.
See fd.o bug 26536.
2010-03-05 14:24:04 -07:00
Brian Paul 76e87786ab gallium/docs: document additional wrap mode restrictions 2010-03-05 13:30:24 -07:00
Brian Paul 88e2eae271 gallivm: minor arithmetic improvements 2010-03-05 13:29:25 -07:00
Brian Paul d660e28c9c gallivm: implement non-normalized texture wrap modes
Note that only the PIPE_TEX_WRAP_CLAMP,CLAMP_TO_EDGE,CLAMP_TO_BORDER
modes work with non-normalized texcoords.
2010-03-05 13:29:25 -07:00
Brian Paul b5b128b268 softpipe: implement PIPE_TEX_WRAP_CLAMP_TO_EDGE for unorm texture sampling
CLAMP_TO_BORDER and CLAMP_TO_EDGE were doing the same thing.
2010-03-05 13:28:18 -07:00
Brian Paul e9968ebfa4 mesa: minor reformatting, new comments 2010-03-05 13:28:18 -07:00
Jesse Barnes f846a008e9 progs/xdemos: fix up GLX extension checking
A few of my programs were using the client string in addition to the
main extensions string to see if a feature was present.  Correct this to
only check for the currently available and working extensions.
2010-03-05 11:22:05 -08:00
Jesse Barnes 1ca968363d DRI2: expose OML_sync_control if possible
If the server supports the OML related protocol, enable support for the
extension.
2010-03-05 11:22:05 -08:00
Jesse Barnes 6b3145d6ee GLX: remove debug prints from glXWaitForMscOML dispatch
Leftover from earlier commit.
2010-03-05 11:22:04 -08:00
Jesse Barnes 77bc721a52 xdemos/omlsync: add waitformsc and swap interval code 2010-03-05 11:22:04 -08:00
Michal Krol 2b15f4fc68 progs: Add arbocclude2 demo. 2010-03-05 18:42:42 +01:00
Brian Paul c3b6adccc9 gallium/docs: updated/improve sampler state documentation 2010-03-05 09:53:47 -07:00
Brian Paul 60fae3b024 docs: document GL_APPLE_object_purgeable 2010-03-05 09:24:15 -07:00
Brian Paul e176ae5f2a mesa: whitespace fixes, 80-column wrapping, etc. 2010-03-05 09:23:43 -07:00
Chris Wilson 6ba31fb2db Merge branch 'object-purgeable'
Acked-by: Brian Paul <brianp@vmware.com>
2010-03-05 15:03:56 +00:00
Chris Wilson 755915fa5d APPLE_object_purgeable: intel
Implement support for purgeable objects by using the GEM madvise ioctl.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-03-05 11:23:59 +00:00
Chris Wilson 99864d595f APPLE_object_purgeable: core
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2010-03-05 11:23:55 +00:00
Chia-I Wu 3490923c81 mesa/es: Update GLAPI and APISpec for GL_OES_EGL_image.
This generates the entrypoints and dispatches for GL_OES_EGL_image.
There is no real support yet.
2010-03-05 11:33:10 +08:00
Chia-I Wu 9373447a61 st/egl: Add support for EGL_KHR_image_base and EGL_KHR_image_pixmap.
These extensions are not quite useful until the client APIs gain support
for the respective EGLImage extensions.
2010-03-05 11:33:10 +08:00
Chia-I Wu fade8a6eb6 st/egl: Add get_param to native display interface.
get_param can be used to query the parameters of a native display.
There is only NATIVE_PARAM_USE_NATIVE_BUFFER right now.  It queries
whether the window/pixmap surfaces use the native buffers instead of
private buffers.
2010-03-05 11:32:29 +08:00
Chia-I Wu 89a75b7634 st/egl: Move modeset interface to native_modeset.h.
native.h is getting more and more complex.  Move the independent modeset
interface to native_modeset.h to simplify native.h a little.
2010-03-05 11:32:11 +08:00
Chia-I Wu e38f28dded st/egl: Add event support to the native display interface.
There is only invalid_surface event right now.  When EGL receives the
event, it sets the force_validate flag of the context binding to the
surface.  This helps skip an unnecessary check.
2010-03-05 10:19:05 +08:00
Vinson Lee 45df4bad9f Revert "mesa: Remove pointless comparison of unsigned integer with a negative constant."
This reverts commit a05fdbcb71.

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
2010-03-04 17:41:20 -08:00
Eric Anholt bb35000b4b intel: Remove non-kernel-exec-fencing support.
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.
2010-03-04 16:56:32 -08:00
Eric Anholt 7cbc4c07ee intel: Remove the unused s8 spans code. Not hit during no_rast piglit.
Shaves 5.5k off of the driver.
2010-03-04 16:50:51 -08:00
Michel Dänzer 391b396f3f Fix comparison of unsigned value against < 0. 2010-03-05 00:15:40 +01:00
Brian Paul b37c541500 softpipe: minor tweaks to texture filtering code 2010-03-04 15:58:01 -07:00
Brian Paul 2b5c5c0dcf gallivm: implement texture border color, plus tweaks to some wrap modes
The progs/test/texwrap demo looks pretty good, but there are still some
tiny differences from softpipe.  There may be a sub-pixel texcoord
interpolation error somewhere.

There's some room for optimization.  Many of the wrap modes compute
intermediate values that are constant for the texture size (see the
min/max values).  These could be computed earlier and stored somewhere
for later use.
2010-03-04 15:56:55 -07:00
Brian Paul 946edea794 gallivm: added texture border_color field 2010-03-04 15:56:55 -07:00
Brian Paul 71c0568952 gallivm: added question/comment 2010-03-04 15:56:55 -07:00