Brian Paul
633c9fcf78
st/mesa: set renderbuffer _BaseFormat in a few places
...
NOTE: This is a candidate for the 7.9 and 7.10 branches
2011-02-18 10:28:27 -07:00
Brian Paul
09f14a6086
st/mesa: check buffer orientation in blit_copy_pixels()
...
Can't invert the region if copying between surfaces with different
orientations.
2011-02-18 10:24:41 -07:00
José Fonseca
0ced789a0b
svga: Ensure pending drawing commands other surface operations are emitted before DMAs.
...
This behavior was last when moving the transfers to the contexts.
This fixes several piglit failures, which were reading the color renderbuffer
before the draw operations were emitted.
2011-02-18 16:43:59 +00:00
José Fonseca
f9b4867846
svga: Cannot use negate or abs on source to dsx/dsy instructions.
2011-02-18 16:43:44 +00:00
José Fonseca
0cb6329e89
svga: Ensure SWTNL is created after HWTNL.
...
Matches the internal driver layering, and prevents null svga->hwtnl
dereferencing from inside the swtnl.
2011-02-18 16:43:40 +00:00
José Fonseca
15c3e21097
svga: Ensure LRP's restrictions are observed in all uses.
...
The dst reg must be a temporary, and not be the same as src0 or src2.
2011-02-18 16:43:38 +00:00
José Fonseca
965ab5fed3
svga: Preserve src swizzles in submit_op2/3/4.
...
Several opcodes require scalar swizzle, and this requirement was
being was not being observed when creating temporaries for other reasons.
2011-02-18 16:43:36 +00:00
Marek Olšák
fd8d4b32ed
r300g: remove tracking whether vertex buffers need to be validated
...
This was getting hard to maintain and didn't really bring any real benefits.
Instead, validate buffers when the vertex array state is dirty.
2011-02-18 16:15:03 +01:00
Marek Olšák
bb46eeade3
st/mesa: fix geometry corruption by always re-binding vertex arrays
...
This is a temporary workaround. It fixes sauerbrauten with shaders enabled.
I guess we might be changing vertex attribs somewhere and not updating
the appropriate dirty flags, therefore we can't rely on them for now.
Or maybe we need to make this state dependent on some other flags too.
More info:
https://bugs.freedesktop.org/show_bug.cgi?id=34378
2011-02-18 16:01:01 +01:00
Jakob Bornecrantz
e0481cac7d
svga: Disable surface cache for textures
...
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2011-02-18 14:46:48 +00:00
Jakob Bornecrantz
912ad88742
svga: Describe svga_sampler_views for refcnt debugging
...
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2011-02-18 14:46:47 +00:00
Jakob Bornecrantz
99d955263b
svga: Make sure that refcnt debugger gets the correct backtrace for create
...
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
2011-02-18 14:46:46 +00:00
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
1bf9954bb4
docs: updated environment variable list
2011-02-17 07:29:20 -07: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
Sam Hocevar
3e8fb54fb8
docs: add glsl info
2011-02-16 17:05:08 -07:00
Sam Hocevar
fde4943688
docs: fix glsl_compiler name
2011-02-16 17:05:08 -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