Commit Graph

37191 Commits

Author SHA1 Message Date
Jakob Bornecrantz 52ad45677d util: Make refcnt and symbol debuggers work on windows
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2011-02-18 14:46:23 +00:00
Cyril Brulebois d252db7af1 Point to bugs.freedesktop.org rather than bugzilla.freedesktop.org
Suggested by a freedesktop.org admin.

Signed-off-by: Cyril Brulebois <kibi@debian.org>
2011-02-18 07:42:41 -07:00
Marek Olšák 449c4f3706 u_vbuf_mgr: initialize flag indicating that buffers have been updated
This fixes r300g errors:
r300: Cannot get a relocation in radeon_drm_cs_write_reloc.
2011-02-18 13:57:31 +01:00
Thomas Hellstrom 8cbd3b5ef1 gallium/svga: Fix unnecessary swtnl fallbacks
When we drop the in_swtnl_draw flag, we must force a rerun of
update_need_swtnl to reset the need_swtnl flag to its correct value outside
of a swtnl vbo draw.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2011-02-18 13:25:32 +01:00
Dave Airlie dfa5928404 r600g: reorganise rgtc pieces.
when the cs checker fixes go upstream a lot of this can disappear
into a drm version check.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-02-18 16:00:49 +10:00
Brian Paul b736b4a2b5 st/mesa: implement blit-based path for glCopyPixels
If doing a simple non-overlapping glCopyPixels with no per-fragment ops
we can use pipe_context::resource_copy_region().
2011-02-17 19:11:32 -07:00
Brian Paul d44fbd3c9d mesa: fix comments for _mesa_clip_readpixels() 2011-02-17 19:11:32 -07:00
Brian Paul de2f25de26 st/mesa: indentation fix 2011-02-17 19:11:32 -07:00
Fabian Bieler 8b5119aab3 r600g: Start a new TEX clause if the texture lookup address was fetched in the current clause
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-02-18 10:04:41 +10:00
Fabian Bieler 51cc14471c r600g: Add support to dump vertex- and texture-fetch clauses
Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-02-18 10:04:34 +10:00
Dave Airlie 2a6cce09e3 r600g: add BC4/5 to RGTC conversion
this doesn't do anything much since the rest of mesa doesn't
support RGTC yet.
2011-02-18 09:39:23 +10:00
José Fonseca 262b785ccd util: Fix typo in last commit. 2011-02-17 17:15:57 +00:00
Brian Paul d1becefb05 st/mesa: fix incorrect glCopyPixels position on fallback path
If we hit the pipe_get/put_tile() path for setting up the glCopyPixels
texture we were passing the wrong x/y position to pipe_get_tile().
The x/y position was already accounted for in the pipe_get_transfer()
call so we were effectively reading from 2*readX, 2*readY.

NOTE: This is a candidate for the 7.9 and 7.10 branches.
2011-02-17 10:13:33 -07:00
Brian Paul 1fa97ddb25 draw: update comments, rename vars in pstipple code 2011-02-17 10:13:33 -07:00
José Fonseca 0adeaf00e6 svga: Don't use more than one constant per IFC instruction. 2011-02-17 15:29:32 +00:00
José Fonseca 8902c42db4 mesa: Do copy propagation across if-else-endif.
Addresses excessive TEMP allocation in vertex shaders where all CONSTs are
stored into TEMPS at the start, but copy propagation was failing due to
the presence of IFs.

We could do something about loops, but ifs are easy enough.
2011-02-17 15:29:30 +00:00
José Fonseca 6c1fcf8583 util: Cleanup symbol name resolution on Windows.
- Support symbol name resolution on MinGW.
- Use dbghelp.dll (which should allow 64bit support), but untested yet.
- Cleanup.
2011-02-17 15:26:53 +00:00
Brian Paul f9df46f873 st/mesa: remove unused screen variables 2011-02-17 07:28:58 -07:00
Brian Paul 30ed4ced11 mesa: remove the MESA_NO_DITHER env var
This was sometimes useful back when 16-bit framebuffers were prominent.
2011-02-17 07:28:58 -07:00
Brian Paul b1d485712f softpipe: rename env vars to be consistent 2011-02-17 07:28:58 -07:00
Haitao Feng f55d027ac2 egl_dri2: add swrast
This enables the egl_dri2 driver to load swrast driver
for software rendering. It could be used when hardware
dri2 drivers are not available, such as in VM.

Signed-off-by: Haitao Feng <haitao.feng@intel.com>
2011-02-16 23:06:36 -05:00
Dave Airlie 231bf886da r600g: get s3tc working on cards with crappy 64/128 bit types.
Some cards don't appear to work correctly with the UNORM type,
so switch to the integer type, however since gallium has no
integer types yet from what I can see we need to do a hack to
workaround it for the blitter.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2011-02-17 10:27:09 +10:00
Dave Airlie 5cc35124b3 r600g: add missing type to color buffer swap. 2011-02-17 10:27:09 +10:00
Brian Paul 5d236d71c8 gallium/util: init key with memset()
To silence missing initializers warning.
2011-02-16 17:10:36 -07:00
Brian Paul c8f8d7d873 svga: flush when transitioning between HW and SW rendering paths
To avoid mixing HW and SW rendering with the same vertex buffer.
2011-02-16 17:07:02 -07:00
Brian Paul b5df194923 rtasm: add dummy return statement to silence MSVC warning
And use assert(0) instead of abort() to be consistent with rest
of Gallium.
2011-02-16 17:07:02 -07:00
Brian Paul 2f5032ec1e svga: use TRUE/FALSE instead of 0/1
Some fields are booleans, others are bitmasks.  Use TRUE/FALSE to
clarify what's what.
2011-02-16 17:07:02 -07:00
Brian Paul 64762af008 svga: fix incorrect comment 2011-02-16 17:07:02 -07:00
Brian Paul d432f462c2 svga: dimension the dirty[] array with SVGA_STATE_MAX 2011-02-16 17:07:02 -07:00
Brian Paul e162f28228 mesa: make _mesa_write_renderbuffer_image() non-static 2011-02-16 17:07:02 -07:00
Brian Paul 4b6c9b799b svga: disable a debug_printf() call 2011-02-16 17:07:02 -07:00
Brian Paul aaceca16df mesa: 80-column wrap 2011-02-16 17:05:08 -07:00
José Fonseca fa05ddca15 svga: Proper redefine_user_buffer implementation.
Unfortunately still not enough to make GoogleEarth happy.
2011-02-16 21:53:10 +00:00
Marek Olšák fa3f1348e4 r300g: fix a race between CS and SET_TILING ioctls 2011-02-16 22:23:23 +01:00
Marek Olšák 2d1cc27729 r300g: fix blitting NPOT compressed textures 2011-02-16 21:40:54 +01:00
Marek Olšák 8513d3405b mesa: fix texture3D mipmap generation for UNSIGNED_BYTE_3_3_2 and 4_4
Oops, I copy-pasted a typo from 3_3_2.

The 3_3_2 part is a candidate for 7.9 and 7.10.
The 4_4 part isn't, because AL44 is in neither branches.
2011-02-16 20:44:46 +01:00
Marek Olšák 4d6994e40e mesa: fix mipmap generation for MESA_FORMAT_AL44
This was missed when implementing AL44.
2011-02-16 20:21:40 +01:00
José Fonseca 2a2b156ea5 mesa: Remove the DXT compression via blit path.
No longer used.
2011-02-16 16:50:24 +00:00
José Fonseca 697a3eb832 svga: Don't fake DXT compression ability. 2011-02-16 16:50:24 +00:00
Christoph Bumiller 3903e25a2c nvc0: fix blend factor mapping 2011-02-16 15:45:31 +01:00
Christoph Bumiller 3f1361e060 nvc0: fix emit_dfdx,dfdy 2011-02-16 15:45:31 +01:00
Christoph Bumiller bb2c8e7099 nvc0: don't swap sources if either value is not in a GPR
The memory / immediate source should already be in the only valid
position.
2011-02-16 15:45:31 +01:00
Christoph Bumiller 2fa35eedd9 nvc0: add missing break statements in constant_operand 2011-02-16 15:45:31 +01:00
Christoph Bumiller e7845e3196 nvc0: fix clipping and use VIEWPORT instead of SCISSOR 2011-02-16 15:45:31 +01:00
Christoph Bumiller 19f2272e94 nvc0: demagic the clear flags and fix region clears
The CLIP_RECTs always affect dedicated clears, and it's nicer than
having to mark the viewport or scissor state dirty after it.
2011-02-16 15:45:31 +01:00
Christoph Bumiller 293a8d1b60 nvc0: front stencil mask and func mask methods are swapped 2011-02-16 15:45:31 +01:00
Christoph Bumiller a24e9bd497 nvc0: clone memory values with multiple refs before modifying them 2011-02-16 15:45:30 +01:00
Christoph Bumiller 80a7ae3cc5 nvc0: disable early fragment tests if KIL is used
Early-Z pass raises the occlusion counter.
2011-02-16 15:45:30 +01:00
Christoph Bumiller 17d680cc53 nvc0: force vertex data through FIFO if we need to convert it
We may want to put the converted vertex buffer in persistent
storage instead, but these are rare corner cases.
2011-02-16 15:45:30 +01:00
Christoph Bumiller bf1ce9c64b nvc0: use format from the template on surface creation
Fixes piglit/fbo-srgb.
2011-02-16 15:45:30 +01:00