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.
14 anni fa
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.
14 anni fa
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.
14 anni fa
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.
14 anni fa
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
14 anni fa
Jakob Bornecrantz
e0481cac7d
svga: Disable surface cache for textures
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
14 anni fa
Jakob Bornecrantz
912ad88742
svga: Describe svga_sampler_views for refcnt debugging
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
14 anni fa
Jakob Bornecrantz
99d955263b
svga: Make sure that refcnt debugger gets the correct backtrace for create
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
14 anni fa
Jakob Bornecrantz
52ad45677d
util: Make refcnt and symbol debuggers work on windows
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
14 anni fa
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>
14 anni fa
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.
14 anni fa
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>
14 anni fa
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>
14 anni fa
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().
14 anni fa
Brian Paul
d44fbd3c9d
mesa: fix comments for _mesa_clip_readpixels()
14 anni fa
Brian Paul
de2f25de26
st/mesa: indentation fix
14 anni fa
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>
14 anni fa
Fabian Bieler
51cc14471c
r600g: Add support to dump vertex- and texture-fetch clauses
Signed-off-by: Dave Airlie <airlied@redhat.com>
14 anni fa
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.
14 anni fa
José Fonseca
262b785ccd
util: Fix typo in last commit.
14 anni fa
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.
14 anni fa
Brian Paul
1fa97ddb25
draw: update comments, rename vars in pstipple code
14 anni fa
José Fonseca
0adeaf00e6
svga: Don't use more than one constant per IFC instruction.
14 anni fa
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.
14 anni fa
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.
14 anni fa
Brian Paul
1bf9954bb4
docs: updated environment variable list
14 anni fa
Brian Paul
f9df46f873
st/mesa: remove unused screen variables
14 anni fa
Brian Paul
30ed4ced11
mesa: remove the MESA_NO_DITHER env var
This was sometimes useful back when 16-bit framebuffers were prominent.
14 anni fa
Brian Paul
b1d485712f
softpipe: rename env vars to be consistent
14 anni fa
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>
14 anni fa
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>
14 anni fa
Dave Airlie
5cc35124b3
r600g: add missing type to color buffer swap.
14 anni fa
Brian Paul
5d236d71c8
gallium/util: init key with memset()
To silence missing initializers warning.
14 anni fa
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.
14 anni fa
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.
14 anni fa
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.
14 anni fa
Brian Paul
64762af008
svga: fix incorrect comment
14 anni fa
Brian Paul
d432f462c2
svga: dimension the dirty[] array with SVGA_STATE_MAX
14 anni fa
Brian Paul
e162f28228
mesa: make _mesa_write_renderbuffer_image() non-static
14 anni fa
Brian Paul
4b6c9b799b
svga: disable a debug_printf() call
14 anni fa
Sam Hocevar
3e8fb54fb8
docs: add glsl info
14 anni fa
Sam Hocevar
fde4943688
docs: fix glsl_compiler name
14 anni fa
Brian Paul
aaceca16df
mesa: 80-column wrap
14 anni fa
José Fonseca
fa05ddca15
svga: Proper redefine_user_buffer implementation.
Unfortunately still not enough to make GoogleEarth happy.
14 anni fa
Marek Olšák
fa3f1348e4
r300g: fix a race between CS and SET_TILING ioctls
14 anni fa
Marek Olšák
2d1cc27729
r300g: fix blitting NPOT compressed textures
14 anni fa
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.
14 anni fa
Marek Olšák
4d6994e40e
mesa: fix mipmap generation for MESA_FORMAT_AL44
This was missed when implementing AL44.
14 anni fa
José Fonseca
33d8ff9c31
scons: Recognize 'AMD64' processor as well.
14 anni fa
José Fonseca
590c2ee568
scons: Don't get fooled by 32bit python on a 64bit windows.
14 anni fa