Ian Romanick
f17dbe256b
mesa: set version string to 7.7-rc1
2009-11-30 17:56:07 -08:00
Ian Romanick
650e02003f
Merge branch 'mesa_7_6_branch' into mesa_7_7_branch
...
Conflicts:
progs/util/shaderutil.c
src/mesa/drivers/dri/r600/r600_context.c
src/mesa/main/version.h
2009-11-30 17:47:07 -08:00
Vinson Lee
270d36da14
mesa: Fix array out-of-bounds access by _mesa_TexParameterf.
...
_mesa_TexParameterf calls set_tex_parameterf, which uses the params
argument as an array.
2009-11-29 21:17:44 -05:00
Vinson Lee
a201dfb6bf
mesa: Fix array out-of-bounds access by _mesa_TexParameterf.
...
_mesa_TexParameterf calls set_tex_parameteri, which uses the params
argument as an array.
2009-11-29 18:18:23 -05:00
Maciej Cencora
63c00c53a3
radeon: update miptree code a little
...
Simplify gl image level <-> miptree level mapping (are equal now).
Don't allocate miptree for images that won't fit in it (fixes #25230 ).
2009-11-29 17:27:48 +01:00
Maciej Cencora
2773556d55
radeon: don't check the same miptree many times when looking for matching miptrees
2009-11-29 17:27:47 +01:00
Maciej Cencora
e8f0c8ab9d
radeon: add some debugging info
2009-11-29 17:27:47 +01:00
Vinson Lee
ca5a7aadb4
mesa: Fix array out-of-bounds access by _mesa_TexGenf.
...
_mesa_TexGenf calls _mesa_TexGenfv, which uses the params argument
as an array.
2009-11-29 00:50:48 -05:00
Vinson Lee
d55fb7c835
mesa: Fix array out-of-bounds access by _mesa_TexGeni.
...
_mesa_TexGeni calls _mesa_TexGeniv, which uses the params argument
as an array.
2009-11-28 23:47:23 -05:00
Vinson Lee
919898e92f
dri: Fix potential null pointer dereference in driBindContext.
2009-11-28 23:22:31 -05:00
Vinson Lee
a11d60d14c
mesa: Fix array out-of-bounds access in _mesa_TexEnvf.
...
_mesa_TexEnvf calls _mesa_TexEnvfv, which uses the param argument
as an array.
2009-11-28 22:08:20 -05:00
Maciej Cencora
e5159996a4
radeon: need to flush cs when moving images between mipmap trees
2009-11-28 21:36:59 +01:00
José Fonseca
2348f6d490
scons: Promote pointer arithmetic to error.
...
All code covered by scons is being built on multiple OSes, so pointer
arithmetic must really be addressed when spotted.
2009-11-27 17:06:12 +00:00
José Fonseca
5976d8e6f1
configs: Warn about pointer arithmetic.
...
It's not portable. Warn to help catching it early.
2009-11-27 17:06:12 +00:00
José Fonseca
f62f976e3f
mesa: Avoid void pointer arithmetic.
2009-11-27 17:06:12 +00:00
Keith Whitwell
4236493899
st/xorg: proper fix for compositing after rounding up
...
Basically don't round up shared textures. This fixes compiz,
but I'm afraid that rounding up texture sizes here in the driver
is doomed, as it will inevitably break texture wrap modes.
2009-11-27 15:30:18 +00:00
José Fonseca
1310811469
rbug: Mention where the GUI can be found.
2009-11-27 14:55:20 +00:00
José Fonseca
6dd9676a8f
svga: Re-add shader dumping.
2009-11-27 14:04:47 +00:00
Keith Whitwell
6810ce005a
Revert "st/xorg: fix composite after texture size changes"
...
This reverts commit 124ae59680
.
Pushed by mistake
2009-11-27 14:03:10 +00:00
Keith Whitwell
124ae59680
st/xorg: fix composite after texture size changes
2009-11-27 13:59:22 +00:00
José Fonseca
dc86f4a20b
wgl: Fix copy'n'paste typo in comment.
2009-11-27 13:35:04 +00:00
José Fonseca
135d7e1299
svga: Handle comment tokens when dumping.
2009-11-27 13:34:13 +00:00
José Fonseca
d3f26a8420
svga: Use consistent names for public symbol names of shader dumping facilities.
2009-11-27 13:34:07 +00:00
José Fonseca
178407f33c
svga: Use consistent file names for dumping facilities.
2009-11-27 13:34:04 +00:00
Keith Whitwell
cf3cdda5cc
st/xorg: speculatively round textures up to nearest POT
...
I'm not sure if this is a great change, but helps with caching.
Probably we want to turn this on/off on a driver-by-driver basis.
2009-11-27 12:24:57 +00:00
Keith Whitwell
e595dd4c17
st/xorg: free last fence
2009-11-27 12:24:57 +00:00
Keith Whitwell
b84b7f19df
svga: flush our command buffer after the 8th distinct render target
...
This helps improve the surface cache behaviour in the face of the
large number of single-use render targets generated by EXA and the xorg
state tracker. Without this we can reference hundreds of individual
render targets from a command buffer, which leaves little scope for
sharing or reuse of those targets.
Flushing early means we can start reusing textures much sooner.
This shouldn't have much effect on normal 3d rendering as it's pretty
rare to have a command buffer with >8 different render targets in that
world.
2009-11-27 12:24:57 +00:00
Keith Whitwell
b911688b87
svga: add DEBUG_CACHE option
2009-11-27 12:24:57 +00:00
Vinson Lee
69671df74c
svga: Prevent potential null pointer dereference in vmw_surface.c.
2009-11-26 23:03:53 -05:00
Jakob Bornecrantz
949d95e88a
vmware/xorg: Remove gem include
2009-11-25 02:22:35 +01:00
Michel Dänzer
42db8c8cdb
st/xorg: Use pipe clear hook for solid fills of whole pixmaps.
...
Can give a little boost e.g. for anti-aliased text rendering.
2009-11-26 16:46:13 +01:00
Keith Whitwell
b96218c656
svga: hash the whole key, not just the first four bytes
2009-11-26 15:25:42 +00:00
Michel Dänzer
3eb3bfb7c7
st/xorg: Make sure DRI2 blits use GPU copy contents even for software fallback.
...
Fixes 3D apps not updating with a non-GL compositing manager and Option
"2DAccel" "off".
Also clean up a little pixmap vs. drawable mess.
2009-11-26 16:00:06 +01:00
Keith Whitwell
ecfe1352cc
st/xorg: fix refcounting bugs introduced in earlier commit
2009-11-26 14:23:24 +00:00
Keith Whitwell
dfb871d403
st/xorg: formatting
...
This directory needs indent run over it.
2009-11-26 14:23:07 +00:00
Keith Whitwell
41423c01b2
st/xorg: remove debugging flush
...
Accidentally committed in 7fbdbad5c0
('st/xorg: consolidate some dest surface state setting')
2009-11-26 12:53:36 +00:00
José Fonseca
c783f5cfd8
svga: Remove spurious argument to SVGA_DBG.
2009-11-26 12:02:59 +00:00
Keith Whitwell
7b0e4adaf2
st/xorg: render throttling in block handler
...
Similar to the classic swapbuffer throttling in GL drivers, put an
upper bound on the number of outstanding chunks of rendering the state
tracker can generate -- where calling the block handler denotes a
chunk.
Currently that number is set at around 4 "chunks", but could be
tweaked up or down. If a better measure for the amount of outstanding
rendering is found, that would be fine too.
As it stands, this improves interactivity by preventing the X server
from queueing up arbitary amounts of rendering.
2009-11-26 11:55:47 +00:00
Keith Whitwell
8544c309d0
st/xorg: split copy operation into prepare/copy/done phases
...
Any high-overhead one-off tasks are moved into the prepare hook.
2009-11-26 11:23:37 +00:00
Keith Whitwell
91a5131e6b
st/xorg: don't set up constant buffer for non-xv fragment shaders
...
These currently don't reference any constants. Can add this back
if newer shaders need them, but in the meantime don't create
a new constant buffer every time we do a blit.
2009-11-26 11:23:36 +00:00
Keith Whitwell
fa799f81de
st/xorg: split up shared Done call
...
The two users of composite (Composite and Solid) now call a new
xorg_composite_done() from their Done functions, while CopyDone
is directly implemented on top of xorg_renderer.c.
2009-11-26 11:23:36 +00:00
Keith Whitwell
b4ea1eb871
st/xorg: set up rasterizer state in init
2009-11-26 11:23:36 +00:00
Keith Whitwell
86ba5139a8
st/xorg: remove redundant clipping code
2009-11-26 11:23:36 +00:00
Keith Whitwell
899d20cfaa
st/xorg: don't bother with cso save and restore in copy func
2009-11-26 11:23:36 +00:00
Keith Whitwell
7fbdbad5c0
st/xorg: consolidate some dest surface state setting
2009-11-26 11:23:36 +00:00
Vinson Lee
808f037660
glu/sgi: Fix memory leak in gluBuild2DMipmapLevelsCore.
2009-11-26 00:35:31 -05:00
Jakob Bornecrantz
45d9ea3619
vmware/xorg: Link against libkms
...
If the system doesn't have libkms installed it wont try to link against it.
2009-11-24 19:20:59 +01:00
Jakob Bornecrantz
77529a2cf2
vmware/xorg: Clean Makefile a bit
2009-11-24 19:16:37 +01:00
Jakob Bornecrantz
522e840a91
vmware/xorg: Don't link against libdrm_intel
2009-11-24 18:47:15 +01:00
Jakob Bornecrantz
eca5d6944a
vmware/xorg: Stage driver in lib/gallium
2009-11-24 18:46:40 +01:00
Jakob Bornecrantz
7fac8ce73b
st/xorg: Pass mode types from the kernel to X
2009-11-24 14:53:03 +01:00
Jakob Bornecrantz
ee40b20e7a
st/xorg: Add libkms integration
2009-11-24 12:57:32 +01:00
Jakob Bornecrantz
1a19b9dbc2
st/xorg: Touch up xorg_crtc.c
2009-11-24 12:57:32 +01:00
Jakob Bornecrantz
def9b0e586
st/xorg: Rename driver functions
2009-11-24 12:57:32 +01:00
Jakob Bornecrantz
431e85f894
st/xorg: Rename output functions
2009-11-24 12:57:31 +01:00
Jakob Bornecrantz
6713a83bb8
st/xorg: Rename dri2 functions
2009-11-24 12:57:31 +01:00
Jakob Bornecrantz
26f9eeddf4
st/xorg: Standardise all function names defined in xorg_tracker.h
2009-11-24 12:57:31 +01:00
Keith Whitwell
2946aea110
svga: try harder to make the cachable flag work
...
It doesn't though.
2009-11-25 17:14:07 +00:00
Zack Rusin
c712f33746
st/xorg: accelerate src luminance
2009-11-25 10:20:08 -05:00
Zack Rusin
d228e3cc8e
util: also print out memory statistics
2009-11-25 10:20:08 -05:00
Keith Whitwell
55b0157860
svga: revert packing of surface key
...
Over-ambitious packing of values broke my cursor.
2009-11-25 11:45:20 +00:00
Dave Airlie
92c6a26a8a
radeon: fix context destroy needing lock for flushing.
...
Thanks to Intel code which I've just stolen pretty much as usual.
This fixes fdo bug 22851 which is a dri1 regression since rewrite.
Tested by: fpiobaf (Fabio) on #radeon
Signed-off-by: Dave Airlie <airlied@redhat.com >
2009-11-25 20:40:15 +10:00
Vinson Lee
94bcb9f1a4
glu/sgi: Fix memory leak in gluBuild1DMipmapLevelsCore.
2009-11-25 00:39:37 -05:00
Vinson Lee
0d89f3dc7f
glu/sgi: Fix memory leak in gluBuild2DMipmapLevelsCore.
2009-11-25 00:28:56 -05:00
Vinson Lee
f895abbd97
glu/sgi: Fix memory leak in gluBuild3DMipmapLevelsCore.
2009-11-25 00:18:49 -05:00
Keith Whitwell
f1ce37f74a
svga: cache textures as well as buffers
2009-11-24 21:15:35 +00:00
Keith Whitwell
4509f3cbad
st/xorg: use surface_copy for blits if available
...
Even if its not available, we really want to be coalescing blit
operations better.
2009-11-24 21:15:35 +00:00
Jakob Bornecrantz
acc51ac0ac
svga: Filter out pendantic and ansi flags
...
Rather have the driver compile without the flags then
having to disable them.
2009-11-24 01:16:17 +01:00
Vinson Lee
326b66d724
glu/sgi: Fix memory leak in gluBuild3DMipmapLevelsCore.
2009-11-24 01:23:12 -05:00
Vinson Lee
364070b1f2
dri: Fix potential null pointer deference in dri_put_drawable.
2009-11-24 00:57:55 -05:00
Maciej Cencora
960464e42d
radeon: fix errors in miptree related function
...
- typo
- memory leak
- off by one (spotted by airlied)
2009-11-23 21:59:08 +01:00
Maciej Cencora
635823d267
Merge branch 'mesa_7_7_branch' of http://anongit.freedesktop.org/git/mesa/mesa into mesa_7_7_branch
2009-11-23 21:28:22 +01:00
Jakob Bornecrantz
86710c3334
svga: Scrub Makefiles a bit
...
Remove x86 specific hacks. Not that they will ever be used on
none x86 arches, but they are built by default. And the way the
flags where added was a hack.
2009-11-23 20:09:00 +01:00
Vinson Lee
67125c7f9a
mesa: Initialize variable in _mesa_get_texel_fetch_func.
2009-11-23 01:52:59 -05:00
Vinson Lee
4b0b250aae
glx: Prevent potential null pointer deference in driCreateContext.
2009-11-23 01:30:32 -05:00
Vinson Lee
5b925b7daa
glu/sgi: Fix memory leak in bitmapBuild2DMipmaps.
2009-11-23 01:09:06 -05:00
Vinson Lee
b611f639b4
glu/sgi: Fix memory leak in gluScaleImage3D.
2009-11-23 00:57:37 -05:00
Maciej Cencora
e0fda04013
r300: fix VP source conflict resolution on 64-bit machines
...
On 32bit machines we were lucky because the sizeof(reg) == sizeof(rc_src_register).
On 64bit machines pointers are 8 bytes long, so we were overwriting other data.
2009-11-22 15:08:46 +01:00
Maciej Cencora
dfe440c856
r300: fix SIN/COS/SCS instructions for R300 fp
2009-11-22 14:13:18 +01:00
Vinson Lee
a9c540f5de
glu/sgi: Fix memory leak in gluScaleImage.
2009-11-22 01:57:35 -05:00
Vinson Lee
d3b4c99c70
glu: Fix memory leak in __gl_meshMakeEdge.
2009-11-22 01:45:53 -05:00
Vinson Lee
57d389aab5
svga: Prevent potential null pointer deference in vmw_surface.c.
2009-11-22 01:26:32 -05:00
Vinson Lee
b62a74d3b9
svga: Fix memory leak in vmw_screen_ioctl.c
2009-11-22 01:20:07 -05:00
Vinson Lee
88aab56a26
st/xorg: Prevent potential null pointer deference in xorg_xv.c.
2009-11-22 01:10:38 -05:00
Vinson Lee
46feb7db71
st/xorg: Reorder cases in switch statement.
...
Silences missing break statement warning.
2009-11-22 00:55:52 -05:00
Maciej Cencora
563fe6e8f6
radeon: fix compressed mipmapped textures
...
Tested on r300 only, other cards may require adjusting texture_compressed_row_align.
2009-11-21 16:49:18 +01:00
Maciej Cencora
1d1f81af93
radeon: fix glCompressedTexSubImage
2009-11-21 16:49:18 +01:00
Maciej Cencora
d20b79172d
radeon: fix compressed mipmapped textures
...
Tested on r300 only, other cards may require adjusting texture_compressed_row_align.
2009-11-21 16:30:48 +01:00
Maciej Cencora
df87877636
radeon: fix glCompressedTexSubImage
2009-11-21 16:30:41 +01:00
Roland Scheidegger
465fee75ee
intel: make CopyTex[Sub]Image fallback debug messages more consistent
2009-11-21 04:41:43 -08:00
Roland Scheidegger
c367f4d46e
mesa: handle different RowStride in _mesa_get_compressed_teximage
...
drivers storing compressed textures with non-native stride but relying on
_mesa_get_compressed_teximage for GetCompressedTexImage otherwise won't
work correctly (for instance i965 compressed mipmaps).
2009-11-21 04:41:43 -08:00
Eric Anholt
8451b29d96
i965: Fix several memory leaks on exit.
...
Bug #25194 .
2009-11-21 13:33:57 +01:00
Vinson Lee
052b127842
st/egl: Fix memory leak in egl_tracker.c.
2009-11-20 16:33:25 -08:00
Vinson Lee
ea98e9820d
draw: Initialize variable in draw_pt.c.
2009-11-20 16:03:48 -08:00
Vinson Lee
e19195c185
progs/xdemos: Fix memory leak in pbinfo.c.
2009-11-20 15:52:53 -08:00
Vinson Lee
e0857962b9
progs/xdemos: Fix memory leak in pbdemo.c.
2009-11-20 15:48:29 -08:00
Vinson Lee
538a8df652
progs/xdemos: Fix memory leak in glxpbdemo.c.
2009-11-20 15:18:19 -08:00
Vinson Lee
a4720a1a32
progs/xdemos: Remove duplicate code in glxinfo.c.
2009-11-20 15:06:56 -08:00
Vinson Lee
66a4ec14c3
progs/xdemos: Add assert in corender.c.
2009-11-20 15:03:16 -08:00
Vinson Lee
f6541773c4
i915g: Add missing break statement in i915_debug.c.
2009-11-20 14:31:42 -08:00
Vinson Lee
36e2074b63
gallium/util: Initialize variables in u_pack_color.h.
2009-11-20 14:20:15 -08:00
Jakob Bornecrantz
5109484bd9
st/xorg: Flush any pending operations on upload
2009-11-18 17:49:38 +01:00
Jakob Bornecrantz
8d6da811d4
st/xorg: Unbind any textures in solid
...
Helps debuging with rbug
2009-11-18 17:49:37 +01:00
Alan Hourihane
910b58039a
Fix vega compilation.
2009-11-20 21:15:25 +00:00
Alan Hourihane
1dbf3642b9
Fix memory leak.
2009-11-20 21:15:22 +00:00
Vinson Lee
8556fad751
progs/xdemos: Silence unused value warnings in sharedtex_mt.c.
2009-11-20 13:09:42 -08:00
Vinson Lee
f080567f4c
progs/xdemos: Fix memory leak in glxinfo.c.
2009-11-20 13:01:22 -08:00
Vinson Lee
02c3e0b82d
progs/tests: Silence unused value warnings in sharedtex.c.
2009-11-20 12:49:50 -08:00
Eric Anholt
c4e8918cd2
mesa: Fix NULL deref in optimizer when NumInstructions == 0.
...
Bug #24984 .
2009-11-20 21:46:48 +01:00
Vinson Lee
48deddaa6f
progs/tests: Initialize variable in getprocaddress.c.
2009-11-20 12:34:21 -08:00
Vinson Lee
e26135a744
progs/util: Exit RawImageGetData early if malloc fails.
...
Prevents a null pointer deference later on.
2009-11-20 12:11:55 -08:00
Vinson Lee
c88b18a4df
progs/slang: Check for ftell failure in vstest.c.
2009-11-20 11:34:21 -08:00
Vinson Lee
d36cb2396c
progs/util: Fix memory leak if malloc fails in RawImageOpen.
2009-11-20 11:22:13 -08:00
Vinson Lee
08cb1d0ce4
st/xorg: Fix type of 'unknown'.
2009-11-20 00:03:10 -08:00
Vinson Lee
b98db7bf69
progs/vpglsl: Fix psiz-mul.glsl compilation error on Mac OS.
2009-11-19 23:56:07 -08:00
Vinson Lee
760cf71572
progs/vp: Fix memory leak in vp-tris.c.
2009-11-19 22:59:01 -08:00
Vinson Lee
9553a42f63
progs/trivial: Redraw upon keypress.
2009-11-19 22:52:05 -08:00
Vinson Lee
881f55236a
progs/glsl: Redraw upon keypress.
2009-11-19 22:46:19 -08:00
Dave Airlie
f8ea531820
r100: fix texture_from_pixmap and compiz.
...
r100 state emission has separate rect and non-rect states,
if we are doing TFP for a TEXTURE_2D we shouldn't use the rect
states as they won't get emitted properly.
Signed-off-by: Dave Airlie <airlied@redhat.com >
2009-11-20 11:47:00 +10:00
Vinson Lee
8b808d50e2
st/xorg: Fix infinite loop in copy_packed_data.
2009-11-19 14:40:00 -08:00
Vinson Lee
4ab8dbe593
progs/xdemos: Add missing break statement in offset.c.
2009-11-19 14:20:26 -08:00
Brian Paul
4e6c79ac16
st/mesa: replace st_flush() with pipe->flush()
...
We only need to flush the gallium driver in this case.
Fixes a recursive state validation bug.
2009-11-19 15:18:23 -07:00
Brian Paul
2198497203
vbo: added recursion check in vbo_exec_FlushVertices()
2009-11-19 15:17:56 -07:00
Brian Paul
dc41d62250
st/mesa: get rid of compressed_num_bytes() code
2009-11-19 14:35:38 -07:00
Brian Paul
92863109af
st/mesa: remove is_compressed_mesa_format()
2009-11-19 14:17:31 -07:00
Brian Paul
273f4d6b5f
st/mesa: remove pointless assertion
2009-11-19 14:17:31 -07:00
Brian Paul
3f40166500
softpipe: whitespace/indentation fixes
2009-11-19 14:17:31 -07:00
Vinson Lee
3790c6a13b
progs/trivial: Redraw upon keypress.
2009-11-19 13:03:12 -08:00
Brian Paul
367cfca808
softpipe: add missing check in softpipe_is_texture_referenced()
...
Check if the named texture is referenced by the texture cache.
2009-11-19 11:39:24 -07:00
Michel Dänzer
31ea323b4d
st/xorg: Replace compile-time acceleration switch with Option "2DAccel".
...
This option can be used to disable 2D acceleration. DRI2 and XVideo blits will
still be accelerated, at least to some degree even with compositing.
2009-11-19 17:52:55 +01:00
Michel Dänzer
10c67f9381
st/xorg: Miscellaneous XVideo fixes.
...
* Make sure the destination pixmap has a texture to render into.
* Fix damage reporting so the EXA migration code can do the right thing.
* Fix destination coordinates for redirected windows.
2009-11-19 17:47:21 +01:00
Michel Dänzer
34145fc3b7
st/xorg: Try harder to ensure a shared texture has valid contents right away.
2009-11-19 17:30:32 +01:00
Michel Dänzer
012d0193cc
st/xorg: Don't complain about convolution filter being 'unknown'.
...
Also add a newline to the complaint so it'll be a little less annoying if we
actually encounter an unknown filter value again.
2009-11-19 17:25:05 +01:00
Michel Dänzer
10dbdee056
st/xorg: Remove superfluous flushes from the EXA WaitMarker hook.
...
Thanks to Thomas Hellström for pointing this out.
2009-11-19 10:54:49 +01:00
Michel Dänzer
ea114345a6
st/xorg: Don't initialize non-existing fields.
2009-11-19 10:38:08 +01:00
Vinson Lee
e3cfd78969
progs/tests: Fix memory leak in texdown.c if malloc fails.
2009-11-18 17:30:50 -08:00
Jakob Bornecrantz
e12c9a6f3a
st/xorg: Init all functions and fix spelling
2009-11-18 10:59:42 +01:00
Vinson Lee
cde6643724
progs/fp: Redraw upon keypress.
2009-11-18 14:41:40 -08:00
Jakob Bornecrantz
9ab3c70f65
st/xorg: Make the #if more easier to read
2009-11-18 10:44:07 +01:00
Jakob Bornecrantz
e73553bff7
st/xorg: Use the correct DRI2BufferPtr struct on 1.6.4 servers
2009-11-18 10:44:07 +01:00
Vinson Lee
4b3ec2acf2
progs/glsl: Fix trirast GLSL compilation errors on Mac OS.
2009-11-18 14:02:20 -08:00
Vinson Lee
0d31990b47
progs/glsl: Fix noise GLSL compilation error on Mac OS.
2009-11-18 13:50:49 -08:00
Maciej Cencora
3bf12c8bea
r300: allow disabling s3tc support if libtxc_dxtn is available
2009-11-18 22:19:25 +01:00
Maciej Cencora
cefee4e327
Merge branch 'radeon-texrewrite-clean' into mesa_7_7_branch
2009-11-18 22:09:33 +01:00
Maciej Cencora
7118db8700
r600: align for mipmap tree changes
2009-11-18 22:02:48 +01:00
Vinson Lee
d4dc2e30da
progs/glsl: Fix multinoise GLSL compilation errors on Mac OS.
2009-11-18 12:49:31 -08:00
Vinson Lee
04442841fb
progs/glsl: Fix mandelbrot GLSL compilation error on Mac OS.
2009-11-17 23:15:25 -08:00
Ian Romanick
70dca0c273
AL1616: Fix cut-and-paste bug
...
One of the PACK_COLOR_88 cases was left over from copying
_mesa_texstore_al88 to _mesa_texstore_al1616.
2009-11-17 22:53:06 -08:00
Brian Paul
89e20ab3ae
progs/glsl: use ShadersSupported()
2009-11-17 19:22:29 -07:00
Brian Paul
6acb82dab0
progs/util: warn when GLSL not supported
2009-11-17 19:22:11 -07:00
Ian Romanick
5606dfb572
Merge branch 'outputswritten64'
...
Add a GLbitfield64 type and several macros to operate on 64-bit
fields. The OutputsWritten field of gl_program is changed to use that
type. This results in a fair amount of fallout in drivers that use
programs.
No changes are strictly necessary at this point as all bits used are
below the 32-bit boundary. Fairly soon several bits will be added for
clip distances written by a vertex shader. This will cause several
bits used for varyings to be pushed above the 32-bit boundary. This
will affect any drivers that support GLSL.
At this point, only the i965 driver has been modified to support this
eventuality.
I did this as a "squash" merge. There were several places through the
outputswritten64 branch where things were broken. I foresee this
causing difficulties later for bisecting. The history is still
available in the branch.
Conflicts:
src/mesa/drivers/dri/i965/brw_wm.h
2009-11-17 16:25:38 -08:00
Ian Romanick
b43887cf7e
ARB_fbo: Enable extensions related to GL_ARB_framebuffer_object for GLX
2009-11-17 16:25:38 -08:00
Ian Romanick
4e7476f601
ARB_fbo: Add missing GLX render opcode for glFramebufferTextureLayerEXT
...
Also regenerate the GLX protocol files from this change.
2009-11-17 16:25:38 -08:00
Ian Romanick
5fbfd88338
Add missing XML files to API_XML
...
When the files missing from the list were modified, the generated files
weren't regenerated.
2009-11-17 16:25:38 -08:00
Ian Romanick
4d6ec21439
ARB_fbo: Enable GL_EXT_framebuffer_multisample
...
All of this functionality is already included in ARB_fbo. This just
enables the string.
I was a bit lazy in using FEATURE_ARB_framebuffer_object for this
feature as well. I don't think it makes much difference in the long run.
2009-11-17 16:25:38 -08:00
Ian Romanick
7fd44005ae
ARB_fbo: Regenerate files from previous commits.
2009-11-17 16:25:37 -08:00
Ian Romanick
50b05e7c1f
ARB_fbo: Move EXT_fb_blit to EXT_framebuffer_object.xml
...
This extension is layered on GL_EXT_framebuffer_object, so it should
live in the same XML file.
2009-11-17 16:25:37 -08:00
Ian Romanick
afab8d9958
ARB_fbo: Add GL_EXT_framebuffer_multisample
...
Add GL_EXT_framebuffer_multisample. Make
glRenderbufferStorageMultisampleEXT in GL_EXT_framebuffer_object alias
glRenderbufferStorageMultisample. Also add the missing GLX render
opcode to glRenderbufferStorageMultisample.
Since this extension is layered on GL_EXT_framebuffer_object, I put it
in EXT_framebuffer_object.xml.
2009-11-17 16:25:37 -08:00
Ian Romanick
daad31d527
EXT_pds: Alias GL_NV_packed_depth_stencil to GL_EXT_packed_depth_stencil
...
GL_EXT_packed_depth_stencil is a functional superset of
GL_NV_packed_depth_stencil. If a driver enables EXT_pds, make NV_pds
available as well.
2009-11-17 16:25:37 -08:00
Ian Romanick
b244b702b3
EXT_pds: Add GL_EXT_packed_depth_stencil
2009-11-17 16:25:37 -08:00
Ian Romanick
92b38bc305
EXT_fbo_blit: Add missing GLX protocol render opcode
2009-11-17 16:25:37 -08:00
Ian Romanick
30f09573ed
ARB_fbo: Add missing protocol "Get" information
2009-11-17 16:25:37 -08:00
Ian Romanick
c185ff96c9
ARB_fbo: Remove _EXT from enum names
2009-11-17 16:25:37 -08:00
Brian Paul
4440d8adb6
docs: libGL documentation, from the xorg-docs tree
...
This is pretty old and needs some updating but might be useful or
interesting to some people.
2009-11-17 16:33:22 -07:00
Vinson Lee
773de83d3c
progs/tests: Fix memory leak in arbgpuprog.c.
2009-11-17 15:24:40 -08:00
Brian Paul
a54033bedb
mesa: remove old comment
2009-11-17 16:18:29 -07:00
Brian Paul
133501bef2
mesa: fix assorted compiler warnings
2009-11-17 16:16:30 -07:00
Brian Paul
bc8fb028c6
mesa: fix incorrect type in store_texel_al1616()
2009-11-17 16:16:30 -07:00
Brian Paul
7e3955d8e8
i915g: replace //-style comments
2009-11-17 16:16:30 -07:00
Brian Paul
c4c11eb456
gallium/util: replace //-style comments
2009-11-17 16:16:30 -07:00
Brian Paul
845ddbc9aa
i915g: remove trailing commas in enum lists to silence warnings
2009-11-17 16:16:30 -07:00
Brian Paul
fc3c5ffcc8
progs/xdemos: change //-style comments
2009-11-17 16:16:30 -07:00
Brian Paul
b08f447547
progs/glsl: change //-style comments
2009-11-17 16:16:30 -07:00
Brian Paul
1888a72765
progs/demos: silence warnings
2009-11-17 16:16:30 -07:00
Brian Paul
0422053eca
mesa: remove trailing comment to silence warning
2009-11-17 16:16:30 -07:00
Brian Paul
e36751ec81
mesa: remove a bit of old code
2009-11-17 16:16:30 -07:00
Vinson Lee
e8eec93854
progs/slang: Fix potential null pointer dereference in cltest.c.
2009-11-17 14:22:35 -08:00
Vinson Lee
47b5f584a6
progs/redbook: Fix memory leak in quadric.c.
2009-11-17 14:10:35 -08:00
Maciej Cencora
afe84fa698
r200: align for mipmap tree changes
2009-11-17 19:46:59 +01:00
Maciej Cencora
93eb2ab8c3
radeon: align for mipmap tree changes
2009-11-17 19:46:37 +01:00
Jakob Bornecrantz
46492f11f6
svga: More -Werror removal
2009-11-17 12:09:19 +01:00
Vinson Lee
d9508e8df9
progs/util: Fix memory leak if fopen fails in RawImageOpen.
2009-11-17 13:49:31 -08:00
Jakob Bornecrantz
8c5a108dc3
svga: Remove -Werror for now as GCC 4.4.x raises a bunch of warnings
2009-11-17 11:24:39 +01:00
Maciej Cencora
aef769207d
r300: fix reads and writes for MESA_FORMAT_S8Z24 buffer
...
Regression was introduced by texformat-rework branch merge.
2009-11-17 13:40:43 -07:00
Brian Paul
d888bbc45a
progs/xdemos: added -lX11 -lpthread for GNU gold linker
2009-11-17 13:40:00 -07:00
Vinson Lee
11905da883
progs/util: Fix memory leak if fread returns 0 in CompileShaderFile.
2009-11-17 12:00:22 -08:00
Brian Paul
6418ce7df6
mesa: move -ansi -pedantic to CFLAGS
2009-11-17 12:47:54 -07:00
Vinson Lee
b8dcb79c53
progs/glsl: Change tangentAttrib from GLuint to GLint in bump.c.
...
tangentAtrrib is assigned the result of glGetAttribLocation.
The assertion 'assert(tangentAtrrib >= 0)' would be a no-op if
tangentAttrib is a GLuint.
2009-11-17 11:37:48 -08:00
Vinson Lee
786d539511
progs/util: Fix memory leak if malloc fails in tkRGBImageLoad.
2009-11-17 11:04:24 -08:00
Patrice Mandin
b353106467
nouveau: nv30: Check for NULL front (happens with DRI2)
2009-11-17 19:50:37 +01:00
Patrice Mandin
49289f1d25
nouveau: nv30: Add missing include to fix warning
2009-11-17 19:49:56 +01:00
Michel Dänzer
52be96b7fe
Remove unconditional use of glibc specific bswap_16() macro.
...
Fixes unresolved symbol bswap_16 on non-glibc or little endian glibc platforms.
2009-11-17 19:41:29 +01:00
Brian Paul
63bc736f90
docs: list the new VMware SVGA Gallium driver in release notes
2009-11-17 11:23:19 -07:00
Dan Nicholson
cf65d81cf1
dri: Ensure subdirs have finished before linking driver
...
Recursive make is hard. If there are subdirectories in the DRI drivers,
it's pretty certain we want to finish building in them before linking
the driver. Add a new target to serialize the rules.
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com >
2009-11-17 11:23:19 -07:00
Vinson Lee
041cd0e110
progs/util: Fix memory leak if LoadRGBImage fails.
2009-11-17 10:11:50 -08:00
Michel Dänzer
33e93f4277
r600: More span breakage fixes.
...
At least now the compiler doesn't complain about implicitly declared functions
anymore...
2009-11-17 19:02:03 +01:00
Vinson Lee
0e783c7d03
progs/glsl: Fix memory leak in deriv.c.
2009-11-17 09:54:54 -08:00
Michel Dänzer
29f3e7e1d1
r600: Attempt to fix span breakage introduced by big endian fixes.
...
Only compile tested; I happened to notice people on IRC reporting
.../r600_dri.so: undefined symbol: radeon_ptr_2byte_8x2
2009-11-17 18:47:24 +01:00
Vinson Lee
28b8e4bcd7
progs/util: Fix memory if LoadRGBMipmaps2 fails.
2009-11-17 08:29:36 -08:00
Michel Dänzer
081bf9563f
radeon: Depth/stencil span code fixes for big endian.
...
Fixes e.g. text in progs/demos/arbocclude.
2009-11-17 11:09:09 +01:00
Michel Dänzer
592ce48ce9
radeon: Fix occlusion queries on big endian.
2009-11-17 11:08:21 +01:00
Michel Dänzer
2262765425
radeon: Fix software fallbacks with KMS on big endian.
2009-11-17 08:05:23 +01:00
Michel Dänzer
f2651264d3
radeon: FBO fixes for big endian.
2009-11-17 08:05:22 +01:00
Michel Dänzer
2d0c295256
Add MESA_FORMAT_XRGB8888_REV.
2009-11-17 08:05:22 +01:00
Dave Airlie
e015a4c29b
radeon: rn50's have no 3D engine so don't try and init 3D driver.
2009-11-17 16:06:26 +10:00
Vinson Lee
0e790ac353
progs/util: Fix memory leak if LoadYUVImage fails.
2009-11-16 18:24:06 -08:00
Jakob Bornecrantz
60769b232c
svga: Build svga driver
2009-11-17 03:18:06 +01:00
Jakob Bornecrantz
f7109aaf6c
svga: Add vmwgfx_drm.h file from vmwgfx kernel driver
...
Add the vmwgfx_drm.h header for now, this allows the svga driver
to be enabled by default without forcing people to install the
vmwgfx_drm.h header on their system.
To be removed once vmwgfx_drm.h is in libdrm.
2009-11-17 03:18:05 +01:00
Jakob Bornecrantz
3192633d4a
svga: Add svga driver
2009-11-17 03:18:04 +01:00
Vinson Lee
6b480dc21d
progs/demos: Fix memory leak in ray.c.
2009-11-16 18:06:40 -08:00
Jakob Bornecrantz
648e8b4c46
st/xorg: Fix copy-pasto
...
Thanks Alan.
2009-11-17 01:48:53 +01:00
Vinson Lee
ee555e3d69
progs/demos: Fix memory leak in projtex.c.
2009-11-16 16:31:34 -08:00
Vinson Lee
a1afe303de
progs/demos: Fix memory leak in ipers.c.
2009-11-16 15:44:52 -08:00
Ian Romanick
fdfbae3381
i965: Use MESA_FORMAT_AL1616 when appropriate
2009-11-16 15:23:17 -08:00
Ian Romanick
b1616b2a81
Move 'static' to start of declaration to silence compiler warning
2009-11-16 15:23:16 -08:00
Ian Romanick
12982e381d
AL1616: Enable MESA_FORMAT_AL1616 for software paths
2009-11-16 15:23:16 -08:00
Ian Romanick
3325dc91be
AL1616: Add TexImage storage path
2009-11-16 15:23:16 -08:00
Ian Romanick
975871b4d5
AL1616: Add texel fetch / store routines
2009-11-16 15:23:16 -08:00
Ian Romanick
eb437fabe0
AL1616: Add formats for GL_LUMINANCE16_ALPHA16 textures
2009-11-16 15:23:16 -08:00
Ian Romanick
5fb07a4046
AL1616: Add macros to pack two GLushorts into a texel
2009-11-16 15:23:16 -08:00
Vinson Lee
aef3218f0b
progs/demos: Fix memory leak in fslight.c.
2009-11-16 14:56:07 -08:00
Jakob Bornecrantz
cb060f3b98
st/xorg: Fix comp alpha code and deal with luminance masks
...
There are two fixes in here one is a one liner that fixes
component alpha logic. The other deals better with luminance
formats used for masks, sources not yet implemented.
Fixes component alpha text and icons in gnome. There are a one
or two cases that this code misses. Like if src_luminance is set
but no mask image is given.
2009-11-16 23:33:45 +01:00
Jakob Bornecrantz
5438ee3ecf
st/xorg: Incase of format missmatch swizzle channels and set alpha
...
This path is only hit for icons in gnome so far
2009-11-16 23:33:44 +01:00
Alex Deucher
d683acb101
r600: don't force Z order
...
Let the hw decide (early vs late Z)
fixes fdo bug 25092
Signed-off-by: Alex Deucher <alexdeucher@gmail.com >
2009-11-16 15:03:48 -05:00
Corbin Simpson
0f060250fc
docs: Update r300g status.
2009-11-16 10:46:20 -08:00
Brian Paul
664b7303c2
docs: fixes, changes for Mesa 7.7
2009-11-16 11:33:45 -07:00
Brian Paul
fcf8dea36c
progs/tests: silence warning
2009-11-16 11:33:45 -07:00
Brian Paul
f549f4c4b6
mesa: remove unused vertex array driver hooks
2009-11-16 11:33:44 -07:00
Brian Paul
652828ec0e
mesa: check BaseLevel, MaxLevel in _mesa_GenerateMipmapEXT()
2009-11-16 08:25:17 -07:00
Brian Paul
a719395b45
mesa: use _mesa_get_current_tex_object()
2009-11-16 08:21:28 -07:00
Brian Paul
ecb03d75a2
mesa: added another check in check_gen_mipmap()
...
We don't need to call ctx->Driver.GenerateMipmap() if we're updating
a texture level >= MAX_LEVEL.
2009-11-16 08:18:03 -07:00
Michel Dänzer
d3a37d93ab
st/xorg: Only reference new picture formats when they're defined.
...
Fixes http://bugs.freedesktop.org/show_bug.cgi/?id=25094 .
2009-11-16 11:59:39 +01:00
Brian Paul
afae49cc15
st/mesa: comments for st_draw.c
2009-11-15 16:22:53 -07:00
Brian Paul
4581f70578
st/egl: add some basic comments
2009-11-15 16:22:52 -07:00
Francisco Jerez
abefd7dcdf
nv20: Fix build for the last nouveau_class.h changes.
...
Signed-off-by: Francisco Jerez <currojerez@riseup.net >
Signed-off-by: Pekka Paalanen <pq@iki.fi >
2009-11-15 18:20:19 +02:00
Francisco Jerez
ed9c4933af
nv10: Fix build for the last nouveau_class.h changes.
...
Signed-off-by: Francisco Jerez <currojerez@riseup.net >
Signed-off-by: Pekka Paalanen <pq@iki.fi >
2009-11-15 18:20:19 +02:00
Vinson Lee
a420056750
progs: Ignore Mac OS dSYM directories.
2009-11-14 21:39:31 -08:00
Maciej Cencora
ad83aeccdc
radeon: return false on texture validation if texture isn't complete
2009-11-14 18:11:16 +01:00
Maciej Cencora
23ec7c4574
radeon: rework mipmap tree
2009-11-14 16:55:39 +01:00
Maciej Cencora
8f88cf3938
radeon: more texture code refactoring
2009-11-14 16:55:38 +01:00
Maciej Cencora
9d0af686b2
radeon: minor refactoring of texture code
...
Also properly set dstImageOffsets for TexSubImage case.
2009-11-14 16:55:38 +01:00
Maciej Cencora
7628b06ba3
radeon: rework mipmap tree reference counting
2009-11-14 16:55:34 +01:00
Maciej Cencora
6e5d473cc1
r300: fix regression introduced in 1d5a06a1f7
...
Spotted by Dave Airlie
2009-11-14 14:43:34 +01:00
Maciej Cencora
aa19561158
radeon: use radeon_bo_is_referenced_by_cs for query objects
2009-11-14 14:43:18 +01:00
Maciej Cencora
d3fa67c9b8
radeon/r300: don't flush cmdbuf if not necessary
2009-11-14 14:43:10 +01:00
Maciej Cencora
286bf89e5a
radeon/r300: no need to flush the cmdbuf when changing scissors state in KMM mode
2009-11-14 14:42:48 +01:00
Maciej Cencora
f6d0993212
radeon: fix glBufferSubData
2009-11-14 14:42:34 +01:00
Maciej Cencora
084f43c150
radeon: add radeon_bo_is_referenced_by_cs function
2009-11-14 14:42:26 +01:00
Maciej Cencora
49876ab6a7
radeon: remove unnecessary call to radeonEmitState
...
fixes bo space accounting errors
2009-11-14 14:42:19 +01:00
Maciej Cencora
0aad2aee66
r300: add missing texformat
2009-11-14 14:42:10 +01:00
Maciej Cencora
e92492295b
r300: remove unneeded includes
2009-11-14 14:42:01 +01:00
Eric Anholt
57f40b1837
i965: Share OPCODE_TXB between brw_wm_emit.c and brw_wm_glsl.c
...
This should fix TXB on G45 and older in the GLSL case.
2009-11-13 16:04:13 -08:00
Eric Anholt
1be0efcbdc
i965: Share OPCODE_TEX between brw_wm_emit.c and brw_wm_glsl.c.
...
New comments should explain some of the confusion about how this message
works.
2009-11-13 16:04:10 -08:00
Eric Anholt
a0fd49b334
i965: Clean up emit_tex a bit.
2009-11-13 15:17:24 -08:00
Eric Anholt
3d36d6b4cf
Merge remote branch 'origin/mesa_7_6_branch'
2009-11-13 14:45:29 -08:00
Eric Anholt
99077e7792
i965: Flag BRW_NEW_CONTEXT on some context state.
...
Fixing this is a prereq for avoiding flagging all state at new
batch time. Eliminating that still causes problems, though (notably
glean logicOp fails on my GM965).
2009-11-13 14:39:09 -08:00
Eric Anholt
1ffd0a7789
intel: Remove some dead context structure fields.
2009-11-13 13:18:57 -08:00
Eric Anholt
3727858ceb
i965: Remove an unused cache_item field.
2009-11-13 13:18:57 -08:00
Eric Anholt
b54f8eeae8
i965: Remove long dead structures for ffvertex_prog.c.
2009-11-13 13:18:57 -08:00
Eric Anholt
ded0ec1ea5
i965: Use bo_map instead of subdata to upload the bits of constant buffer.
...
Saves CPU time, resulting in a 2.5% FPS win on ETQW.
2009-11-13 13:18:57 -08:00
Eric Anholt
8e8586e626
i965: Validate the number of URB entries selected for the VS.
2009-11-13 13:18:56 -08:00
Eric Anholt
3c05c1eb63
intel: When subdataing a busy buffer, use a temporary and blit in.
...
This cuts a massive number of waits in ET:QW, which uses a VBO ringbuffer.
Unfortunately it doesn't BufferData when wrapping back to 0, so we can't
be clever with tracking what's been initialized.
2009-11-13 13:18:56 -08:00
Eric Anholt
4e50ce35ee
i965: Clean up Ironlake sampler type definitions.
...
They're the same regardless of execution width for 8, 4x2, and 16.
2009-11-13 13:18:56 -08:00
Eric Anholt
91bd593109
i965: Avoid moving the current value back into the accumulator for MAD.
...
This is a 2.9% (+/-.3%) performance win for my GL demo, which hits MAD
sequences for matrix transforms.
2009-11-13 13:18:56 -08:00
Eric Anholt
d6690ce15f
mesa: Improve the eliminate-move-use to work across multiple instructions.
...
This shaves more instructions off of the VS of my GL demo, but no
performance difference this time at n=6. This also fixes a regression
that was in this path, which is now piglit's glsl-vs-mov-after-deref.
2009-11-13 13:18:22 -08:00
Zack Rusin
654122ba7b
st/xorg: try to fix non-uniform transforms
2009-11-13 14:58:35 -05:00
Vinson Lee
43080e40aa
progs/glsl: Add missing break statement in multinoise.c.
2009-11-12 16:21:49 -08:00
Ian Romanick
b6b753f727
intel: Don't check for context pointer to be NULL during extension init
...
Thanks to Chia-I Wu's changes to the extension function
infrastructure, we no longer have to tell the loader which extensions
the driver might enable. This means that intelInitExtensions will
never be called with a NULL context pointer. Remove all the NULL checks.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Eric Anholt <eric@anholt.net >
2009-11-12 15:43:09 -08:00
Ian Romanick
a736d3f439
intel: Remove unused enable_imaging parameter to intelInitExtensions
2009-11-12 15:43:09 -08:00
Zack Rusin
4d72f8f520
st/xorg: use an immediate instead of a full blown const
2009-11-11 21:47:28 -05:00
Zack Rusin
72b4a7d67f
st/xorg: don't use flow control
2009-11-11 21:43:40 -05:00
Brian Paul
0a39620d6d
swrast: handle additional Z24 formats in read_depth_pixels()
2009-11-11 19:38:19 -07:00
Vinson Lee
7dfea5c072
demos/glsl: Add missing break statement to noise test.
2009-11-11 17:39:58 -08:00
Zack Rusin
2cfbbc76e4
st/xorg: implement repeatnone and make some code smell less like ass
2009-11-11 19:55:50 -05:00
Zack Rusin
493d599af4
st/xorg: fallback until daddy can implement you properly
2009-11-11 19:55:50 -05:00
Brian Paul
2ff4f5a7fe
progs/tests: add alpha/blend testing to packedpixels.c
2009-11-11 12:25:08 -07:00
Corbin Simpson
cbee31a1f8
r300, r300g: Add missing registers.
2009-11-11 10:24:19 -08:00
Corbin Simpson
d030ce6a84
dri-st: Add some required GL 2.0 extensions.
...
Two-sided stencil and NPOT textures.
2009-11-11 10:24:06 -08:00
Jakob Bornecrantz
e4a19ffb13
st/xorg: Fallback if picture format doesn't match texture format
2009-11-10 10:05:40 +01:00
Jakob Bornecrantz
3201c655e4
st/xorg: Don't segfault when debug printing
2009-11-10 10:00:04 +01:00
Zack Rusin
fca8b2c3ae
st/xorg: wrap to border color
2009-11-10 20:30:48 -05:00
brian
b81f213157
swrast: update renderbuffer format assertions
2009-11-10 18:23:59 -07:00
brian
a65b84d955
mesa: fix some begin/end render-to-texture logic
...
Before, we weren't aggressive enough in checking for the start or end
of render-to-texture. In particular, if only the ctx->ReadBuffer had
texture attachments, we were treating that as a render-to-texture case.
This fixes a regression from commit 75bdbdd90b
"intel: Don't validate in a texture image used as a render target."
2009-11-10 18:09:13 -07:00
brian
bc569cd6be
mesa: move check_begin/end_texture_render() calls
2009-11-10 18:09:13 -07:00
brian
d96e55fa7b
mesa: new vars: oldDrawFb, oldReadFb in _mesa_BindFramebufferEXT()
2009-11-10 18:09:13 -07:00
brian
e6f60d3037
mesa: rename vars in _mesa_BindFramebufferEXT()
2009-11-10 18:09:13 -07:00
brian
a492ab765a
mesa: added comment for check_begin_texture_render()
2009-11-10 18:09:12 -07:00
Jakob Bornecrantz
4c54f8e9aa
st/egl: Probe hardware for depth stencil format
2009-11-10 08:29:41 +01:00
Zack Rusin
d2c886c8ca
st/xorg: cleanup the naming
2009-11-10 19:42:03 -05:00
Zack Rusin
e08512f3d4
st/xorg: print ouf the picture formats when compositing
2009-11-10 19:42:02 -05:00
Eric Anholt
e42b156fac
Merge remote branch 'origin/mesa_7_6_branch'
2009-11-10 16:01:28 -08:00
Eric Anholt
c5413839b3
i965: avoid memsetting all the BRW_WM_MAX_INSN arrays for every compile.
...
For an app that's blowing out the state cache, like sauerbraten, the
memset of the giant arrays ended up taking 11% of the CPU even when only a
"few" of the entries got used. With this, the WM program compile drops back
down to 1% of CPU time.
Bug #24981 (bisected to BRW_WM_MAX_INSN increase).
2009-11-10 16:00:30 -08:00
Eric Anholt
eb6a1f8a00
i965: Add a note explaining the data cache domain.
2009-11-10 16:00:30 -08:00
Vinson Lee
520b6abdec
i915g: Fix memory leak when pci id is unknown.
2009-11-10 12:39:42 -08:00
Eric Anholt
56ab92bad8
i965: Unalias src/dst registers for SGE and friends.
...
Fixes piglit vp-sge-alias test, and the googleearth ground shader. \o/
Bug #22228
2009-11-10 10:54:15 -08:00
Eric Anholt
d52d78b4bc
i965: Allow use of PROGRAM_LOCAL constants in ARB_vp.
...
Fixes piglit arl.vp.
2009-11-10 10:46:57 -08:00
Michal Krol
28039ffdc8
slang: Fix return value check.
2009-11-10 19:25:51 +01:00
Michel Dänzer
5e17c89ead
st/xorg: Fix SCons build.
...
Check for new DPMS header and add xorg_renderer.c source file.
2009-11-10 10:09:56 -08:00
Michal Krol
413e933fd5
slang: Check OOM conditions for alloc_node_storage().
2009-11-10 18:30:10 +01:00
José Fonseca
eef5a0b3a3
llvmpipe: Fix derived blend color state.
2009-11-10 05:22:15 -08:00
Michal Krol
cc470bf0ca
slang: Check return value from new_instruction().
2009-11-10 04:03:55 +01:00
Michal Krol
b2a29ad309
slang: Fix signed/unsigned int handling in _slang_free_temp().
2009-11-10 03:25:06 +01:00
Michal Krol
b5d8a7b6dc
tgsi/exec: Exit early on error.
2009-11-10 03:12:02 +01:00
Michal Krol
e44c77028c
tgsi/ureg: Simplify logic in tokens_expand().
2009-11-10 03:08:21 +01:00
Michal Krol
83760d961f
slang: Handle OOM condition in new_instruction().
2009-11-10 02:46:24 +01:00
Zack Rusin
031fbb9681
st/xorg: remove deprecated rendering code
2009-11-09 18:04:21 -05:00
Zack Rusin
a6d527d7b8
st/xorg: fix composite batching
...
quite a large performance optimization (text demo from 1.6fps to 9fps)
2009-11-09 18:04:21 -05:00
Jerome Glisse
216319fc0f
r600/r700: typo, fix mask of DB_ALPHA_TO_MASK
2009-11-09 22:37:41 +01:00
Alex Deucher
66d6f9e860
r600: rework DB render setup
...
- consolidate DB render setup
- only enable perfect ZPASS counts and cull disable
when OQ is active
- enable early Z
2009-11-09 12:20:47 -05:00
Alex Deucher
37676b396a
r600: don't emit htile regs
...
These are needed for HiZ which is not currently used and
the _BASE reg requires a reloc which is not currently supported
in the drm.
2009-11-09 12:16:55 -05:00
Alex Deucher
a9035f3dc3
r600: add missing ZPASS setup bits for r7xx+
2009-11-09 12:16:55 -05:00
José Fonseca
bc9d51bb0e
llvmpipe: Ensure stack variables in unit tests are properly aligned.
2009-11-09 07:26:08 -08:00
Christoph Bumiller
7204b92101
nv50: clarify data for method 0x121c
2009-11-09 14:30:32 +01:00
Corbin Simpson
c9167d868c
r300g: Fix up SW TCL rendering functions.
...
They don't work, but at least they're clean now.
2009-11-08 14:53:29 -08:00
Corbin Simpson
fe89863808
r300g: Protect against possibly missing Draw pointer.
...
Part of the SW TCL revival.
2009-11-08 14:53:29 -08:00
Corbin Simpson
11d9edf4c9
r300g: Unify context names for counts.
...
From the SW TCL fixups.
2009-11-08 14:53:29 -08:00
Corbin Simpson
b6f93e2607
r300g: Enable PSC/RS dump with new debugging flags.
2009-11-08 14:53:15 -08:00
Corbin Simpson
0525cb1273
r300g: Fix is_buffer_referenced.
2009-11-08 09:56:02 -08:00
Corbin Simpson
ee28a69188
r300g: Fix build error on old compilers.
...
This dead code was still getting compiled, causing a bad ref in the lib.
2009-11-08 09:35:07 -08:00
Corbin Simpson
a12fc1a9c4
r300g: Organize inlined state.
2009-11-07 14:32:31 -08:00
Corbin Simpson
547e939afb
r300g: DCE.
...
This must never have been called before; it's completely wrong.
2009-11-07 14:14:19 -08:00
Corbin Simpson
9f49db6f84
r300g: Minor code cleanup to avoid confusion.
2009-11-07 13:37:07 -08:00
Corbin Simpson
fa6916cfef
r300g: Remove do-nothing functions.
2009-11-07 13:12:15 -08:00
Corbin Simpson
c4fa0e4caa
r300g: Remove faulty assert.
2009-11-07 13:07:52 -08:00
Corbin Simpson
b7322fd874
Merge branch 'r300g-vbo'
...
This is an experimental HW TCL fastpath for r300g. It should run alright.
Thanks to osiris for making this possible.
2009-11-07 12:03:04 -08:00
Corbin Simpson
0fe5f0c09a
r300g: Be more verbose in what's killing us WRT vert formats.
2009-11-07 11:55:29 -08:00
Corbin Simpson
cd5b2a93d5
r300g: Comments.
2009-11-07 11:55:29 -08:00
Corbin Simpson
ef513776b5
r300g: Don't assert on oversized VBOs, just return FALSE.
2009-11-07 11:55:25 -08:00
Corbin Simpson
746c01b3b2
r300g: Moar vbo cleanup.
2009-11-07 11:53:14 -08:00
Corbin Simpson
b6c3954138
r300g: s/false/FALSE/
...
Also s/true/TRUE/
2009-11-07 11:53:14 -08:00
Corbin Simpson
7da3cc4241
r300g: Clean up indexbuf render, switch to RELOC macro.
2009-11-07 11:53:14 -08:00
Corbin Simpson
7518d9b1b7
r300g: Clean up r300_setup_vertex_buffers.
2009-11-07 11:53:14 -08:00
Corbin Simpson
96b729f926
r300g: Don't pass hw_prim around in the context.
...
And some other fixes.
2009-11-07 11:53:14 -08:00
Corbin Simpson
24c6fdbd32
r300g: Use common state funcs for translating vert formats.
2009-11-07 11:53:14 -08:00
Maciej Cencora
1ef0341ea7
r300g: don't hang GPU on misbehaving apps
2009-11-07 11:53:13 -08:00
Maciej Cencora
3445f47697
r300g: VBOs WIP
2009-11-07 11:53:13 -08:00
Maciej Cencora
d8592d1724
r300g: add missing flush
2009-11-07 11:53:13 -08:00
Maciej Cencora
c7dfffc5d5
r300g: enable CS dumping
2009-11-07 11:53:13 -08:00
Maciej Cencora
6acb26eadf
r300g: move vborender context function to seperate file
...
r300g: Un-migrate r300_draw_render.
It'll make maintaining the SW TCL path easier.
2009-11-07 11:53:06 -08:00
Jakob Bornecrantz
57d77c6a44
i915g: Fix comment in is buffer referenced
2009-11-07 19:31:18 +00:00
brian
18768393d1
mesa: move code after decl
...
Fixes bug 24967.
2009-11-07 08:18:07 -07:00
Christoph Bumiller
44cb5b5c66
nv50: enable all 32 threads of a warp
...
This should be the default setting.
See also 7d967b9b7c
.
2009-11-07 10:48:36 +01:00
Eric Anholt
8baee3d25b
i965: Use Compr4 instruction compression mode on G4X and newer.
...
No statistically significant performance difference at n=3 with either
openarena or my GL demo, but cutting program size seems like a good
thing to be doing for the hypothetical app that has a working set near
icache size.
2009-11-06 21:24:22 -08:00
Eric Anholt
ec66644ed0
i965: Share min/max between brw_wm_emit.c and brw_wm_glsl.c
2009-11-06 21:08:55 -08:00
Eric Anholt
cfa927766a
i965: Share emit_fb_write() between brw_wm_emit.c and brw_wm_glsl.c
...
This should fix issues with antialiased lines in GLSL.
2009-11-06 21:08:55 -08:00
Eric Anholt
2b58c31257
i965: Share most of the WM functions between brw_wm_glsl.c and brw_wm_emit.c
...
The PINTERP code should be faster for brw_wm_glsl.c now since brw_wm_emit.c's
had been improved, and pixel_w should no longer stomp on a neighbor to dst.
2009-11-06 21:08:55 -08:00
Eric Anholt
1e5400c575
i965: Share math functions between brw_wm_glsl.c and brw_wm_emit.c.
2009-11-06 21:08:54 -08:00
Eric Anholt
7059aa0eff
i965: Share the sop opcodes between brw_wm_glsl.c and brw_wm_emit.c.
2009-11-06 21:08:54 -08:00
Eric Anholt
726ad15606
i965: Share OPCODE_MAD between brw_wm_glsl.c and brw_wm_emit.c
2009-11-06 21:08:54 -08:00
Eric Anholt
bad5b120be
i965: Share the DP3, DP4, and DPH between brw_wm_glsl.c and brw_wm_emit.c
2009-11-06 21:08:54 -08:00
Eric Anholt
06c1bc8a22
i965: Add generic GLSL code for unaliasing a 3-arg opcode, and share LRP code.
2009-11-06 21:08:54 -08:00
Eric Anholt
90629704ef
i965: Use a normal alu1 emit for OPCODE_TRUNC.
2009-11-06 21:08:54 -08:00
Eric Anholt
71af508072
i965: Share basic ALU ops between brw_wm_glsl and brw_wm_emit.c
...
This drops support for get_src_reg_imm in these, but the prospect of getting
brw_wm_pass*.c onto our GLSL path is well worth some temporary pain.
2009-11-06 21:08:54 -08:00
Eric Anholt
0f34cdf621
i965: Collect GLSL src/dst regs up in generic code.
...
This matches brw_wm_emit.c, which we'll be using shortly. There's a
possible penalty here in that we'll allocate registers for unused channels,
since we aren't doing ref tracking like brw_wm_pass*.c does. However, my
measurements on GM965 don't show any for either OA or UT2004 with the GLSL
path forced.
2009-11-06 21:08:54 -08:00
Zack Rusin
e521bf7706
st/xorg: implement batching for the composite op
...
something is broken so disabled for now
2009-11-06 22:08:21 -05:00
Zack Rusin
4322346f3f
st/xorg: batch solid fill requests
...
instead of lots of very small transfers, one larger is a lot better
for performance
2009-11-06 22:08:21 -05:00
Zack Rusin
e1730632aa
st/xorg: start accumulating vertices in a common buffer
2009-11-06 22:08:21 -05:00
Zack Rusin
3f7df23ff5
st/xorg: use quads instead of triangle fans
...
easier to split, accumulate and batch those
2009-11-06 22:08:21 -05:00
Zack Rusin
6c44d399bd
st/xorg: make the buffer size global
2009-11-06 22:08:21 -05:00
Eric Anholt
6b0bcfafab
mesa: Reduce the source channels considered in optimization passes.
...
Depending on the writemask or the opcode, we can often trim the source
channels considered used for dead code elimination. This saves actual
instructions on 965 in the non-GLSL path for glean glsl1, and cleans up
the writemasks of programs even further.
2009-11-06 14:27:35 -08:00
Eric Anholt
f3cacfe216
mesa: Fix remove_instructions to successfully remove when removeFlags[0].
...
This fixes the dead code elimination to work on the particular code
mentioned in the previous commit.
2009-11-06 13:16:49 -08:00
Eric Anholt
e4e312d493
mesa: Add an optimization path to remove use of pointless MOVs.
...
GLSL code such as:
vec4 result = {0, 1, 0, 0};
gl_FragColor = result;
emits code like:
0: MOV TEMP[0], CONST[0];
1: MOV OUTPUT[1], TEMP[0];
and this replaces it with:
0: MOV TEMP[0], CONST[0];
1: MOV OUTPUT[1], CONST[0];
Even when the dead code eliminator fails to clean up a now-useless MOV
instruction (since it doesn't do live/dead ranges), this should at reduce
dependencies.
2009-11-06 13:16:49 -08:00
Eric Anholt
ee0a9e6e10
mesa: Fix up the remove_dead_code pass to operate on a channel basis.
...
This cleans up a bunch of instructions in GLSL programs to have limited
writemasks, which would translate to wins in shaders that hit the i965
brw_wm_glsl.c path by depending less on in-driver optimizations. It will
also help hit other optimization passes I'm looking at.
2009-11-06 13:16:49 -08:00
Brian Paul
3105f3aa88
intel: better front color buffer test in intelClear()
2009-11-06 13:52:48 -07:00
Eric Anholt
8395da2e8a
i965: Always pass the size argument to brw_cache_data.
...
This keeps the individual state files from having to export their
structures for brw_state_cache initialization.
2009-11-06 11:37:32 -08:00
Eric Anholt
1166294d1d
intel: Finish removing the fallback code for bug #16697 .
...
I fixed it properly as of 7216679c19
.
2009-11-06 11:37:32 -08:00
Eric Anholt
75bdbdd90b
intel: Don't validate in a texture image used as a render target.
...
Otherwise, we could lose track of rendering to that image, which could
easily happen during mipmap generation.
2009-11-06 11:37:32 -08:00
Eric Anholt
6b68482e68
mesa: Attempt to pair up Driver.RenderTexture and FinishRenderTexture()
...
This is probably not 100% complete (bind vs unbind may still not pair up
exactly), but it should help out drivers which are relying on
FinishRenderTexture to be called when we're done rendering to a particular
texture level, not just when we're done rendering to the object at all.
This is the case for the one consumer of FinishRenderTexture() so far: the
gallium state tracker. Noticed when trying to make use of FRT() in the intel
driver.
2009-11-06 11:37:32 -08:00
Eric Anholt
8df81bca17
intel: Clean up some extra struct indirection in finalize.
2009-11-06 11:37:32 -08:00
Eric Anholt
ee7dfbbd6c
intel: Use _mesa_get_current_tex_object() to clean up TFP path.
2009-11-06 11:37:31 -08:00
Eric Anholt
8f30ceaaef
intel: Remove duplicated arguments from intel_miptree_match_image().
2009-11-06 11:37:31 -08:00
Eric Anholt
2bc8bcdcd3
i965: Remove an XXX comment for testing some code that seems to work.
2009-11-06 11:37:31 -08:00
Eric Anholt
bb2dd50be0
intel: Remove obsolete comment about GEM in the spans code.
2009-11-06 11:37:31 -08:00
Eric Anholt
8e0f40d287
intel: Use PIPE_CONTROL on gen4 hardware for doing pipeline flushing.
...
This should do all the things that MI_FLUSH did, but it can be pipelined
so that further rendering isn't blocked on the flush completion unless
necessary.
2009-11-06 11:37:31 -08:00
Eric Anholt
caf3038123
Make a convenient int for what chipset generation we're on.
...
gen2/3/4 are easier to say than "8xx, 915-945/g33/pineview, 965/g45/misc",
and compares on generation are often easier than stringing together a bunch
of chipset checks.
2009-11-06 11:37:31 -08:00
Ian Romanick
4e4c2ee1fd
Merge branch 'mesa_7_6_branch'
...
This should fix the memory leaks in the assembly parser without the
regressions.
The conflicts in program_lexer.l were related to changes in returning
strings between the branches (always return IDENTIFIER vs. returing
either IDENTIFIER or USED_IDENTIFIER).
The conflicts in program_parse.y were related to two changes in master
One change prints a variable name in an error message. The other
change adds outputVarSize to the OUTPUT_statement rule. The cause the
position of the IDENTIFIER to change from $2 to $3.
Conflicts:
src/mesa/shader/lex.yy.c
src/mesa/shader/program_lexer.l
src/mesa/shader/program_parse.tab.c
src/mesa/shader/program_parse.y
2009-11-06 11:17:00 -08:00
José Fonseca
96e938f62c
llvmpipe: Fix build with llvm 2.6.
...
Fixes bug 24949.
2009-11-06 15:08:05 +00:00
Brian Paul
38d3c156dc
intel: call intel_check_front_buffer_rendering() in intelClear()
...
fixes bug 24953.
2009-11-06 08:00:38 -07:00
José Fonseca
577a598dc9
mesa: Export S3_s3tc as well.
...
Used in Quake3.
2009-11-06 12:06:45 +00:00
José Fonseca
f611425101
mesa: Translate MAP_UNSYNCHRONIZED_BIT.
2009-11-06 12:06:44 +00:00
José Fonseca
244591ae7b
gallium: Add UNSYNCHRONIZED cpu access flag. Document others.
2009-11-06 12:06:44 +00:00
Zack Rusin
25728860fc
st/xorg: unify vertex buffer handling
...
first step on our way to batching
2009-11-06 00:19:54 -05:00
Brian Paul
d971069fc6
mesa: fix infinite loop bug in _mesa_drawbuffers()
...
Fixes bug 24946.
This regression came from 8df699b3bb
.
2009-11-05 13:17:21 -07:00
José Fonseca
67034b9efc
softpipe: Implement PIPE_BLENDFACTOR_SRC_ALPHA_SATURATE for destination.
...
It is a valid and tested combination on D3D9.
2009-11-05 19:44:07 +00:00
Cooper Yuan
e0590159ce
g3dvl: remove a debug line
2009-11-05 16:06:01 +08:00
Cooper Yuan
c621c100b2
g3dvl: add scissor setting
2009-11-05 15:59:27 +08:00
Marek Olšák
c2e47191d7
r300g: add polygon mode
...
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com >
2009-11-04 18:19:34 -08:00
Marek Olšák
4671005a43
r300g: fix the size of CS when emitting the fragprog constant buffer
...
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com >
2009-11-04 18:19:34 -08:00
Marek Olšák
07190888bd
r300g: set the correct offset in a colorbuffer surface
...
Suggested by Joakim Sindholt.
Also, put flushing of colorbuffers _before_ the framebuffer state setup,
suggested by docs.
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com >
2009-11-04 18:19:34 -08:00
Marek Olšák
ad96c0d851
r300g: add color channel masking
...
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com >
2009-11-04 18:19:34 -08:00
Brian Paul
898de4a9d5
Merge branch 'mesa_7_6_branch'
...
Conflicts:
src/mesa/drivers/windows/gdi/mesa.def
2009-11-04 17:57:20 -07:00
Brian Paul
fe86f8d732
ARB prog parser: include variable name in error text
2009-11-04 17:27:49 -07:00
Zack Rusin
4c5a758d06
st/xorg: these flushes shouldn't be necessary
...
performance optimization
2009-11-04 18:10:33 -05:00
Alex Deucher
9fce12b894
r600: rework draw functions
...
Seems INDX_OFFSET doesn't work properly on some cards,
so change back to immediate mode indices. Seems to only
affect DRI1. Needs more investigation.
Rework and clean up the draw functions.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com >
2009-11-04 16:59:13 -05:00
Alex Deucher
70dade8afe
r600: fix count prediction for IB case
...
Signed-off-by: Alex Deucher <alexdeucher@gmail.com >
2009-11-04 14:43:24 -05:00
Alan Hourihane
3040b2ee9d
Fix YTILE spantmp functions
2009-11-04 14:48:25 +00:00
José Fonseca
0b4ea45e8a
util: Remove homegrown Windows KM profiler.
...
It's not sampling based so its results are biased towards functions called
many times.
2009-11-04 12:15:29 +00:00
Michal Krol
767bc8eb5a
tgsi/ureg: Allow for multiple extended instruction tokens.
...
For example, we would like to have a predicate and texture token
in one instruction to do predicated texture sampling.
2009-11-04 11:47:10 +00:00
Christoph Bumiller
618e3b89f6
nv50: fix shader emit_tex for cube textures
2009-11-04 00:53:52 +01:00
Christoph Bumiller
317ccfe0df
nv50: add abs-modifier for emit_minmax
2009-11-04 00:53:51 +01:00
Christoph Bumiller
040e1d008f
nv50: add 3d texture tiling and mip-mapping
...
Mip-mapped 3D textures are not arrays of 2D layers
with a mip-map layout like 2D textures, therefore we
cannot use image_nr == depth for them.
Making use of "volume tiling" modes now, the allowed
modes are 0xZY where Z <= 5 and y <= 5.
2009-11-04 00:53:51 +01:00
Vinson Lee
c475079ef2
progs/util: Fix memory leak if fail to load/compile shader
...
Signed-off-by: Brian Paul <brianp@vmware.com >
2009-11-03 14:49:41 -07:00
Michal Krol
ceb6728725
llvmpipe: Sanitise shader semantic and interpolator handling.
...
Handle the remaining semantic names and indices.
Respect color interpolator when not flatshading.
Based on Michal's softpipe commit
eb699d64ec
.
2009-11-03 17:12:34 +00:00
Keith Whitwell
026cf84bbb
llvmpipe: remove old prim_setup draw stage
...
Everything now goes through the draw_vbuf handler, the same as
regular drivers.
Based on Keith's commit 4fe0fc3eba
.
2009-11-03 17:12:34 +00:00
José Fonseca
677a055fa0
llvmpipe: Respect gl_rasterization_rules in primitive setup.
...
Based on Michal's identical commit for softpipe
(ca9c413647
).
2009-11-03 17:12:34 +00:00
José Fonseca
3e8f665c1e
python/retrace: Cope with null constant buffers.
2009-11-03 17:12:33 +00:00
José Fonseca
a2e868b977
python/retrace: Add missing colon.
2009-11-03 17:12:33 +00:00
Brian Paul
a017ad2861
progs/tests: debug code for getting texture component sizes
2009-11-03 10:01:10 -07:00
Michal Krol
7ccf60ae40
tgsi: Up tgsi_exec's control flow nesting to 32.
2009-11-03 16:56:50 +00:00
Brian Paul
4bced42341
Merge branch 'mesa_7_6_branch'
2009-11-03 09:54:09 -07:00
Brian Paul
800e553e7a
mesa: clean-up, remove some flushing in FBO functions
...
Remove some unneeded flushes.
Replace FLUSH_CURRENT w/ FLUSH_VERTICES in other places.
2009-11-03 09:52:25 -07:00
Brian Paul
4de18fb093
mesa: fix indentation
2009-11-03 09:52:25 -07:00
Brian Paul
5698d7cd75
mesa: clean-up formatting
2009-11-03 09:52:25 -07:00
Brian Paul
18af75e501
mesa: avoid extraneous _NEW_BUFFER changes in _mesa_BindFramebufferEXT()
2009-11-03 09:52:25 -07:00
Brian Paul
c7048f9d9f
mesa: use FLUSH_VERTICES() in _mesa_drawbuffers()
2009-11-03 09:52:25 -07:00
Brian Paul
8df699b3bb
mesa: avoid extraneous _NEW_BUFFER state in _mesa_drawbuffers()
2009-11-03 09:52:25 -07:00
Brian Paul
b28c637382
mesa: use ffs() to shorten loop in _mesa_drawbuffers()
2009-11-03 09:52:25 -07:00
Brian Paul
2d11c48223
mesa: added assertion, another comment
2009-11-03 09:52:25 -07:00
Brian Paul
bcbfda71b0
intel: avoid unnecessary front buffer flushing/updating
...
Before, if we just called glXMakeCurrent() and didn't render anything we'd
still trigger a flushFrontBuffer() call.
Now only set the intel->front_buffer_dirty field at state validation time
just before we draw something.
NOTE: additional calls to intel_check_front_buffer_rendering() might be
needed if I missed some rendering paths.
2009-11-03 09:52:25 -07:00
Brian Paul
644d8fd363
mesa: added comment
2009-11-02 19:38:35 -07:00
Brian Paul
7157479b25
mesa: use _mesa_get_current_tex_object()
2009-11-02 19:38:35 -07:00
Brian Paul
1afe60e802
mesa: use _mesa_get_current_tex_object()
2009-11-02 19:38:35 -07:00
Brian Paul
b8fdb900fb
mesa: make _mesa_get_current_tex_objec() public
2009-11-02 19:38:35 -07:00
Ian Romanick
731810f854
ARB prog parser: Fix a couple issues with previous merge from mesa_7_6_branch
...
Since the addition of support for Nvidia condition codes, the lexer internally
uses handle_ident to select between returning IDENTIFIER and USED_IDENTIFIER.
Also, use return_string instead of strdup.
Fixes bug #24809 .
2009-11-02 12:44:14 -08:00
Pierre Ossman
213ec8251c
r600: implement LOG op in compiler
2009-11-02 11:30:00 -05:00
Pierre Ossman
d00cbba403
r600: implement EXP op in compiler
2009-11-02 11:29:54 -05:00
Michal Krol
c379fbbe24
tgsi/ureg: Add negate and swizzle for predicates.
2009-11-02 14:59:52 +00:00
Brian Paul
c02cd82b46
mesa: fix incorrect approx bits/channel for fxt1 formats
...
See bug 24806.
2009-11-02 06:52:10 -07:00
Brian Paul
a40055f4b6
gallium/util: add casts to silence warnings
2009-11-02 06:51:47 -07:00
Michal Krol
962ece9540
tgsi/ureg: Update for gallium interface changes.
2009-11-02 09:44:21 +00:00
Michal Krol
aa2b2e5d7d
tgsi: Update for gallium interface changes.
2009-11-02 09:44:20 +00:00
Michal Krol
0a7d50ed7e
gallium: Cleanup predicate and condition code TGSI tokens.
...
There is little point in having a special TGSI token just to handle
predicate register updates. Remove tgsi_dst_register_ext_predicate token
and instead use a new PREDICATE register file to update predicates.
Actually, the contents of the obsolete token are being moved
to tgsi_instruction_ext_predicate, where they should be
from the very beginning.
Remove the NVIDIA-specific condition code tokens -- nobody uses them
and they can be emulated with predicates if needed.
Introduce PIPE_CAP_SM3 that indicates whether a driver supports
SM3-level instructions, and in particular predicates.
Add PIPE_CAP_MAX_PREDICATE_REGISTERS that can be used to query the driver
how many predicate registers it supports (currently it would be 1).
2009-11-02 09:44:18 +00:00
Michal Krol
eb699d64ec
softpipe: Sanitise shader semantic and interpolator handling.
...
Handle the remaining semantic names and indices.
Respect color interpolator when not flatshading.
2009-11-02 09:44:16 +00:00
Younes Manton
87d7c1aa15
nouveau: Assume all texture blankets are linear for now.
2009-11-01 18:27:47 -05:00
Corbin Simpson
1f630fa016
r300g: Miscellania. Avoid draw segfaults, s/true/TRUE/, etc.
...
Cleared out my git stash.
2009-11-01 11:54:52 -08:00
Maciej Cencora
3d73852121
r300g: fix geometry corruptions
...
PVS flush is needed before changing the vertex shader or vertex shader constants.
2009-11-01 11:02:02 -08:00
Maciej Cencora
2db46af875
r300g: split constant buffer and shader emittion
2009-11-01 11:01:40 -08:00
Corbin Simpson
cab749a1d0
r300g: Adopt osiris' PSC data and swizzle.
...
A fair amount more flexible and easier to maintain.
2009-11-01 09:24:02 -08:00
Christoph Bumiller
5de8f97440
nv50: handle TGSI_SEMANTIC_FACE
2009-11-01 14:28:08 +01:00
Christoph Bumiller
496c9eaacf
nv50: make IF condition safe
...
Don't assume that a SET that writes to IF's argument
directly precedes the IF.
2009-11-01 14:28:04 +01:00
Christoph Bumiller
99e308a0e0
nv50: implement TGSI_OPCODE_AND/OR/XOR
...
Will use AND for gl_FrontFacing, the face input
is either 0 or 0xffffffff.
2009-11-01 14:27:35 +01:00
Christoph Bumiller
1cc16e1b83
nv50: fix textures with block size != cpp
...
First, using width * block size as pitch is evidently
wrong if a block contains more than 1 texel.
For tiled textures, since a block occupies a contiguous
area of memory, y addressing in m2mf has to be done by
block index, not the y coordinate itself.
This should fix compressed textures.
2009-10-31 20:51:09 +01:00
Younes Manton
91232b7004
nouveau: Support X8R8G8B8 textures on nv30, nv40 and RTs on nv10-nv40.
2009-10-31 09:42:49 -04:00
Christoph Bumiller
9831e1f76c
nv50: use SIFC also for shader upload
...
Adds a more generic SIFC transfer function.
2009-10-31 13:40:33 +01:00
Christoph Bumiller
525f529d13
nv50: make MRTs work
...
We have to indicate to the hw whether the FP exports
multiple colour results.
Method 0x121c is used to specify the number of RTs.
Also deactivate zeta explicitly if there's no zsbuf.
2009-10-31 13:40:33 +01:00
Dave Airlie
73b45b0669
radeon: add missing include
2009-10-31 21:24:50 +10:00
Marek Olšák
c9928ac3ee
r300g: correct the pitch calculation for smaller mipmaps
2009-10-31 07:30:48 +01:00
Marek Olšák
3f60130b87
r300g: pretend NPOT support
...
It's requires to get GL2.1, therefore, much more piglit tests can be used
for testing. Figure out later how to emulate this.
2009-10-31 07:30:48 +01:00
Marek Olšák
a8f85dceb5
r300g: fix reading from the destination buffer in blending
2009-10-31 07:30:48 +01:00
Marek Olšák
63c9450ae7
r300g: add precalculating of pixel pitch, add a new NPOT flag
2009-10-31 07:30:48 +01:00
Marek Olšák
11180b4471
r300g: remove unnecessary assertions
...
Also, correct typos in comments.
2009-10-31 07:30:48 +01:00
Marek Olšák
ace78d90de
r300g: fix crash in r300_is_texture_referenced
...
Also, a subtle fix in emitting a texture state
2009-10-31 07:30:47 +01:00
Dave Airlie
5cf7c8e2d5
radeon: use _mesa_get_current_tex_unit
2009-10-31 15:50:12 +10:00
Brian Paul
5e9f97f0ea
ARB prog parser: regenerated files
2009-10-30 19:08:19 -06:00
Brian Paul
df5615de1f
ARB prog parser: new set_src_reg(), set_dst_reg() helpers
...
These functions do sanity checks on the register file and index.
2009-10-30 19:08:18 -06:00
Brian Paul
a71edc9455
mesa: better error message
2009-10-30 19:08:18 -06:00
Eric Anholt
7c8bed62e0
intel: Use GTT mapping when available for swrast.
...
This improves piglit quick.tests runtime from 19:33 minutes to 6:06 on
my GM45. It should also hide most of the A17 swizzling issues, though
they'll still exist when swapping occurs (which is the kernel's problem
either way).
2009-10-30 17:35:12 -07:00
Eric Anholt
d63c29ef20
x86: Fix the test for negative pixel count in optimized rgb565 spans.
...
There's a bunch of bogus looking stuff the count handling in this code, but
this fixes the testcases we have.
2009-10-30 17:35:11 -07:00
Eric Anholt
21a3a79371
intel: Fix up z24_x8 depth spans since the texformat merge.
2009-10-30 17:35:11 -07:00
Vinson Lee
9c3197ef0a
prog/tests: Fix MSVC build.
...
Signed-off-by: Brian Paul <brianp@vmware.com >
2009-10-30 15:30:13 -06:00
Eric Anholt
cb132406de
i965: Add an index assert on get_fp_inst array like other compiler arrays.
2009-10-30 13:28:44 -07:00
Eric Anholt
2c30ee9bd6
i965: Fix BRW_WM_MAX_INSN to reflect current limits.
...
Part of fixing bug #24355 .
2009-10-30 13:20:34 -07:00
Eric Anholt
2073006c95
intel: Set the texture format in the TFP path.
...
This fixes a regression in piglit's tfp test as of
11caea687e
. Additionally, set the texture
format for the RGB textures to MESA_FORMAT_XRGB8888 and support it in the
hw paths so that hopefully sw fallbacks involving TFP get better alpha
behavior.
The radeon drivers appear to need the same fix.
Bug #24803
2009-10-30 12:41:28 -07:00
Alex Deucher
b568a2c808
r600: remove duplicate line
2009-10-30 15:08:09 -04:00
Alex Deucher
703a836d40
r600: fill in some missing tex formats
...
This improves shadowtex since the component ordering
is at least correct now, but I'm not sure how to
deal with texturing from a depth surface yet due to
differences in depth and color tile layouts.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com >
2009-10-30 15:02:34 -04:00
Alex Deucher
57864f6e04
r600: fix a warning, update comments
2009-10-30 11:52:02 -04:00
Vinson Lee
a8ed066858
progs/tests: fix MSVC build.
...
Signed-off-by: Brian Paul <brianp@vmware.com >
2009-10-30 09:40:04 -06:00
Andre Maasikas
5f7d5d3ea3
r600: use AUTO_INDEX for draw - saves cmd buffer space
...
also seems we can use INDX_OFFSET if start != 0
2009-10-30 17:18:00 +02:00
Brian Paul
409469fb70
intel: fix up some XRGB breakage
...
We weren't choosing the right XRGB span functions for reading the
framebuffer. XRGB formats still aren't turned on yet though.
2009-10-30 09:13:04 -06:00
Brian Paul
730a3de9f9
mesa: fix inverted buffer object test
...
Fixes bug 24799.
2009-10-30 08:31:01 -06:00
Brian Paul
71cd40bccf
mesa: fix incorrect format info for MESA_FORMAT_SL8
...
Fixes bugs 24798 and 24801.
2009-10-30 08:21:16 -06:00
Michal Krol
ca9c413647
softpipe: Respect gl_rasterization_rules in primitive setup.
2009-10-30 08:05:40 +00:00
Brian Paul
4a253431ab
intel: update intel_create_renderbuffer(format), add XRGB support
...
Pass a gl_format to intel_create_renderbuffer() instead of GLenum.
Add cases for MESA_FORMAT_XRGB8888 textures and renderbuffers.
However, we don't yet create any renderbuffers or textures with that
format. It seems the default alpha value is zero instead of one.
Need to investigate that first.
2009-10-29 19:12:50 -06:00
Brian Paul
f920d496e1
mesa: fix _mesa_texstore_argb8888() for MESA_FORMAT_XRGB8888
...
If we hit the general path and call _mesa_make_temp_chan_image() we
always want to get a GL_RGBA texture. We were getting a 3-channel
GL_RGB texture before and that messed up the memory layout.
2009-10-29 17:52:01 -06:00
Alex Deucher
c243e8dd23
r600: remove the no rrb messages
2009-10-29 19:44:35 -04:00
Alex Deucher
b924579bd4
r600: Add support for ARB_depth_clamp
2009-10-29 19:42:52 -04:00
Brian Paul
d0b6147291
intel: remove memcpy_get_tex_image() code
...
This has been lifted into core Mesa where it can be used for all drivers
that use the _mesa_get_teximage() fallback for ctx->Driver.GetTexImage().
2009-10-29 16:31:57 -06:00
Brian Paul
fcbf663640
mesa: lift memcpy_get_tex_image() code from intel driver into core Mesa
...
The code should work for any driver.
2009-10-29 16:31:57 -06:00
Brian Paul
bde7874317
mesa: refactor _mesa_get_teximage() code
...
Break different formats into different functions to make it easier to read.
2009-10-29 16:31:57 -06:00
Brian Paul
217a40d8d9
i965: indentation fix
2009-10-29 16:31:57 -06:00
Brian Paul
26d22b094b
i965: make brw_sf_prog_key::sprite_origin_lower_left one bit
...
Shrinks size of key to 8 bytes from 12.
Note that progs/demos/spriteblast.c is still broken.
2009-10-29 16:31:56 -06:00
Brian Paul
035b21f365
i965: make brw_wm_prog_key a little smaller
...
GLushort is big enough for the swizzle and origin fields.
The key could probably be made smaller still by re-ordering things.
I'll hold off on that until after the outputswritten64 branch is merged.
The key will get a little larger again with the GLbitfield64 fields.
2009-10-29 16:31:56 -06:00
Eric Anholt
8a9afe71b8
i915: Fix 1D texture mapping in the t coordinate.
...
Fixes piglit tex1d-2dborder test.
2009-10-29 14:56:52 -07:00
Eric Anholt
4b377ae292
i915: Correct and make use of the defines for 32-bit depth texture modes.
...
Previously, S8_Z24 depth textures would always be treated as intensity.
Fixes piglit depth-tex-modes.
2009-10-29 14:56:52 -07:00
Brian Paul
861fec163c
i965: avoid shader translation on window resize
...
If the fragment shader doesn't use FRAG_ATTRIB_WPOS (gl_FragCoord) we
don't need to worry about the window size and origin in
brw_wm_populate_key().
This avoids re-generating the i965 shader code when a window is resized.
Issue spotted by Keith Whitwell.
2009-10-29 15:33:43 -06:00
Brian Paul
198ec96d36
i965: define, use BRW_MAX_DRAW_BUFFERS
...
i965 might support more than 4 color draw buffers. But if not, this protects
from breakage if the Mesa limit is raised.
2009-10-29 15:33:43 -06:00
Brian Paul
7648c80ac8
i965: remove unused var
2009-10-29 15:33:43 -06:00
Brian Paul
9ef33b8685
i965: don't use context state in emit_fb_write()
...
Put the state that we care about in the hash key.
Issue spotted by Keith Whitwell.
2009-10-29 15:33:43 -06:00
Brian Paul
a8d233e509
i965: use macros to get/set prog_instruction::Aux field
...
This makes things a bit easier to remember/understand.
2009-10-29 15:33:43 -06:00
Brian Paul
a0959bcee5
i965: minor code reformatting
2009-10-29 15:33:43 -06:00
José Fonseca
c6164ff155
mesa: Add MESA_FORMAT_Z24_X8.
2009-10-29 20:03:51 +00:00
Zack Rusin
a7fa56a64b
st/xorg: fix scaling ov xv data, plus some cleanups
2009-10-29 15:13:17 -04:00
Eric Anholt
f8f40b53a6
i915: Implement min/max LOD clamping with the hardware.
...
This gets us expected behavior for clamping between mipmap levels, and
avoids relayout of textures for doing clamping.
Fixes piglit lodclamp-between.
2009-10-29 12:06:04 -07:00
Eric Anholt
3744472441
i965: Replace a MIN(MAX()) with CLAMP().
2009-10-29 12:06:03 -07:00
Brian Paul
ea414e3318
intel: check for single memcpy() in memcpy_get_tex_image()
2009-10-29 11:04:24 -06:00
Eric Anholt
92e7c6a258
i965: Fix fallout from ARB_depth_clamp enablement that broke glDepthRange.
...
If a backwards glDepthRange was supplied (as with the old Quake no-z-clearing
hack), the hardware would have always clamped because we weren't clamping to
the min of near/far and the max of near/far. Also, we shouldn't be clamping
to near/far at all when not in depth clamp mode (this usually didn't matter
since near/far are usually the same as the 0.0, 1.0 clamping you do for
fixed-point depth).
This should fix funny depth issues in PlaneShift, and fixes piglit
depth-clamp-range
2009-10-29 10:01:17 -07:00
Eric Anholt
32ec3f2673
mesa: Mostly fix swrast's ARB_depth_clamp support.
...
I'd written a testcase for the hard part of the extension enablement, so
naturally the easy stuff was completely broken. There are still issues,
as I'm seeing FLOAT_TO_UINT(max_f) == 0x0 when max_f == 1.0, but it gets
piglit depth-clamp-range closer to success.
2009-10-29 10:01:17 -07:00
Eric Anholt
6eb6a0e9cb
intel: Don't bother MI_FLUSHing on glFlush in the DRI2 case.
...
We only need it when drawing to the front buffer, which we never do for
DRI2. No significant performance difference, but the flush is definitely
gone from the end of every batchbuffer.
2009-10-29 10:01:17 -07:00
Eric Anholt
fb0084e69e
intel: Clean up merge leftover from the DRI2 swap throttling.
2009-10-29 10:01:16 -07:00
Brian Paul
1596f714d2
intel: remove debug code
2009-10-29 10:56:13 -06:00
Brian Paul
2b628d43c0
mesa: consolidate some code in _mesa_GetCompressedTexImageARB()
2009-10-29 10:53:26 -06:00
Brian Paul
dcb4716802
intel: added fast memcpy path for glGetTexImage()
2009-10-29 10:50:26 -06:00
Brian Paul
1e2c517026
progs/tests: also test GL_BGRA format in getteximage.c
2009-10-29 10:50:26 -06:00
Brian Paul
01ee5c63d3
mesa: move pixels==NULL check in glGetTexImage()
2009-10-29 10:50:26 -06:00
Brian Paul
99bbf4b4f5
mesa: consolidate some code in _mesa_GetTexImage()
2009-10-29 10:50:26 -06:00
Brian Paul
67df4fb56b
mesa: move, clean-up _mesa_print_texture()
2009-10-29 10:50:26 -06:00
Brian Paul
d580c0c8f7
mesa: fix some tests in subtexture_error_check2()
...
Don't use hard-coded compressed block sizes.
Update comments and error strings.
2009-10-29 10:50:26 -06:00
Brian Paul
cf7040594e
mesa: remove unneedded is_srgb_teximage() function
...
Use _mesa_get_format_color_encoding() function instead.
2009-10-29 10:50:26 -06:00
Brian Paul
c89f5b6ac8
glsl: make shader substitution a little better
2009-10-29 10:50:26 -06:00
David Heidelberger
41892e9b17
st/mesa: fix PIPE_FORMAT_X8Z24 <> MESA_FORMAT_X8_Z24 conversion
...
Signed-off-by: David Heidelberger <d.okias@gmail.com >
Signed-off-by: Brian Paul <brianp@vmware.com >
2009-10-29 10:14:41 -06:00
David Heidelberger
10a509564f
st/mesa: Add conversion from PIPE_FORMAT_X8Z24_UNORM to MESA_FORMAT_S8_Z24.
...
Fix glxgears and openarena for Nouveau (no more asserts and crash).
Signed-off-by: David Heidelberger <d.okias@gmail.com
Signed-off-by: Brian Paul <brianp@vmware.com >
2009-10-29 09:56:14 -06:00
David Heidelberger
c2f5eb7148
st/mesa: Fix nouveau glxinfo after merging texformat-rework.
...
Signed-off-by: David Heidelberger <d.okias@gmail.com >
Signed-off-by: Brian Paul <brianp@vmware.com >
2009-10-29 09:54:38 -06:00
Brian Paul
1f1bfe8cb5
mesa: move declaration to prevent unused var warning
2009-10-29 07:54:44 -06:00
Chia-I Wu
9927d7f31c
mesa: Fix compilation errors and warnings when features are disabled.
...
Some of the fixes are cherry-picked from opengl-es branch.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-29 07:52:58 -06:00
Chia-I Wu
59798cd886
mesa/main: Make FEATURE_texture_s3tc follow feature conventions.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-29 07:52:58 -06:00
Chia-I Wu
20e20fc5af
mesa/main: Make FEATURE_texture_fxt1 follow feature conventions.
...
Also remove the unused initialization and GLchan fetch functions.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-29 07:52:58 -06:00
Chia-I Wu
920f023e8b
mesa/main: Never return NULL in _mesa_get_texstore_func.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-29 07:52:58 -06:00
Brian Paul
e2131e0171
radeon: fix incorrect Z format in radeon_alloc_renderbuffer_storage()
...
And update error message.
2009-10-29 07:47:41 -06:00
Cooper Yuan
da1fb3be82
r300g: Fix bytes_per_line calculation error while displaying surface
2009-10-29 20:20:59 +08:00
Chia-I Wu
59b29516af
swrast: added braces
2009-10-28 22:14:01 -06:00
Brian Paul
c6bd5fae0c
mesa: remove old, unused #define
2009-10-28 21:52:37 -06:00
Brian Paul
bd36ca9b76
mesa: re-remove s3v and trident driver files
...
These were removed from master but a few files came back from the
texformat-rework branch.
2009-10-28 21:46:37 -06:00
Brian Paul
960d49b387
mesa: move some gl_texture_image and gl_renderbuffer fields around
2009-10-28 21:43:50 -06:00
Brian Paul
bc143b1a9f
mesa: minor code movement
2009-10-28 21:25:56 -06:00
Brian Paul
1f196b786d
Merge branch 'texformat-rework'
...
Conflicts:
src/mesa/drivers/dri/radeon/radeon_fbo.c
src/mesa/drivers/dri/s3v/s3v_tex.c
src/mesa/drivers/dri/s3v/s3v_xmesa.c
src/mesa/drivers/dri/trident/trident_context.c
src/mesa/main/debug.c
src/mesa/main/mipmap.c
src/mesa/main/texformat.c
src/mesa/main/texgetimage.c
2009-10-28 21:24:11 -06:00
Brian Paul
086f9fc0e2
swrast: fix RGB, RGBA texturing code
...
Fix backward component ordering for RGB textures.
Only optimize RGBA texture case if running little endian. This restriction
could be lifted with a little work.
2009-10-28 19:46:28 -06:00
Brian Paul
88bb4b5935
swrast: check for single texture unit in _swrast_choose_triangle()
2009-10-28 19:41:24 -06:00
Brian Paul
0103d7a47a
swrast: clean up and remove dead code in triangle functions
2009-10-28 19:40:56 -06:00
Brian Paul
1e7517f059
swrast: fix texel decoding in opt_sample_rgba_2d()
2009-10-28 19:38:12 -06:00
Brian Paul
7ac233ec15
mesa: choose texture format in _mesa_get_fallback_texture()
2009-10-28 19:33:48 -06:00
Brian Paul
0ea575d721
Merge branch 'mesa_7_6_branch'
2009-10-28 18:27:25 -06:00
Zack Rusin
24c61c8c2e
st/xorg: fix src coordinates in the video acceleration paths
2009-10-28 16:53:50 -04:00
Alex Deucher
660acd60d0
r600: add occlusion query support
...
Based on initial patch from Stephan Schmid <stephan_2303@gmx.de >.
Basic idea is to dump the zpass count at the start and end of the query
and subtract to get the total number of visible fragments. HW writes
alternating qwords for up to 4 DBs. On the first pass, we start at
buffer address + 0; on the second pass, we start at buffer address + 8
(bytes). The resulting buffer at the end of the query looks like:
qw[0]: db0 start
qw[1]: db0 end
...
qw[6]: db3 start
qw[7]: db3 end
The MSB of each qword is the valid bit and the lower 63 bits are
the zpass count for that DB.
OQ on RV740 is disabled at the moment as it only seems to report
results for half of its DBs. This needs further investigation.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com >
2009-10-28 15:53:24 -04:00
Corbin Simpson
f3d8d534e6
r300g: Use u_trim_pipe_prim to prevent lockups from incorrect vert counts.
...
Adapted from osiris' version on his tree.
2009-10-28 12:15:35 -07:00
Corbin Simpson
23d8d15bed
r300g: Keep texture formats organized.
2009-10-28 12:15:35 -07:00
Maciej Cencora
e7c8a27638
r300g: add some texture formats
2009-10-28 12:15:35 -07:00
Corbin Simpson
6007e2e008
r300g: Clear up a bit of the buffer reference stuff.
...
Still need to actually get reference info from winsys somehow. Doing added
buffers is easy, but knowing whether a flush has happened is a bit tricky.
2009-10-28 12:15:34 -07:00
Corbin Simpson
81c51bb67f
r300g: Fix XXX.
...
Nothing strange here.
2009-10-28 12:15:34 -07:00
Marek Olšák
bcfde42913
r300g: fix emitting the stencil-ref and alpha-ref values
...
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com >
DSA really needs its head examined someday. ~ C.
2009-10-28 12:15:34 -07:00
Marek Olšák
a1d726aae8
r300g: fix the WRAP_T mode when using 1D textures
...
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com >
2009-10-28 12:15:34 -07:00
Marek Olšák
0e44884aad
r300g: fix blending and do some optimizations
...
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com >
2009-10-28 12:15:34 -07:00
Marek Olšák
c451011d99
mesa/st: fix crash in st_texture_image_copy
...
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com >
2009-10-28 12:15:33 -07:00
Brian Paul
7d56caabe4
Merge branch 'mesa_7_6_branch'
...
Conflicts:
src/mesa/shader/lex.yy.c
src/mesa/shader/program_lexer.l
2009-10-28 11:33:51 -06:00
José Fonseca
182ff3e47a
llvmpipe: Make sure the JIT engine and X86 target are linked on MSVC build.
...
Basically mimic the llvm 2.6 way of linking execution engines and
targets.
2009-10-28 11:26:26 +00:00
José Fonseca
5eba607db6
util: Drop return value from cpuid().
2009-10-28 11:26:26 +00:00
José Fonseca
0426227b68
util: Fix cpuid on MSVC.
2009-10-28 11:26:26 +00:00
José Fonseca
095e66f695
llvmpipe: Implement round() for MSVC.
2009-10-28 11:26:26 +00:00
Brian Paul
6bc1e9fd69
mesa: consolidate _mesa_CompressedTexSubImage[123]DARB() functions
2009-10-27 21:39:44 -06:00
Brian Paul
f3c29bd74f
mesa: consolidate CompressedTexSubImage1/2/3DARB() error checking
2009-10-27 21:15:48 -06:00
Brian Paul
9519603f74
mesa: simplify teximage code with get_current_tex_object()
2009-10-27 21:15:36 -06:00
Brian Paul
dd5691e802
mesa: code refactoring to eliminate a switch stmt in bind_buffer_object()
2009-10-27 20:10:59 -06:00
Brian Paul
b44304efde
glsl: avoid redundant state changes in _mesa_use_program()
2009-10-27 20:10:59 -06:00
Zack Rusin
2947d14202
st/xorg: fix xv
2009-10-27 21:00:47 -04:00
Brian Paul
52374d7e4c
radeon: add case for MESA_FORMAT_X8_Z24 in radeon_create_renderbuffer()
2009-10-27 17:05:08 -06:00
Brian Paul
f8155ef51f
intel: silence warning
2009-10-27 17:01:26 -06:00
Brian Paul
21f8d31cfd
mesa: debug code for glBlitFramebuffer()
2009-10-27 17:00:31 -06:00
Brian Paul
507cf530b9
via: silence unused var warnings
2009-10-27 17:00:31 -06:00
Brian Paul
3c71666921
intel: minor clean-up, comments
2009-10-27 17:00:31 -06:00
Brian Paul
7fd8c6ca2a
intel: use _mesa_get_current_tex_unit() helper
2009-10-27 17:00:31 -06:00
Brian Paul
05ec586851
mesa: s/Bilt/Blit
2009-10-27 17:00:31 -06:00
Brian Paul
403181b913
mesa: more texture debug code changes, improvements
2009-10-27 17:00:31 -06:00
Brian Paul
58a4328e96
mesa: minor code clean-up in client_state()
2009-10-27 17:00:31 -06:00
Brian Paul
72cb441c2f
mesa: avoid redundant state setting in glClientActiveTexture
...
Plus add code for verbose/debugging.
2009-10-27 17:00:31 -06:00
Brian Paul
33531614de
intel: fix comment, formatting
2009-10-27 17:00:31 -06:00
Brian Paul
3bee7610be
progs/tests: added new blitfb.c test
...
Tests glBlitFramebuffer() between two texture/renderbuffer surfaces.
In particular, blit from level[1] of a cube map face to a 2D texture.
Used to find/fix bug in intel do_copy_texsubimage().
See commit aef1ab1073f3e30d699b99dae17518ed48b57c72
2009-10-27 17:00:31 -06:00
Brian Paul
3e45788d5d
intel: fix src offset bug in do_copy_texsubimage()
...
Use src->draw_offset intead of zero. Zero usually worked, except when
the src renderbuffer is actually a texture mipmap level higher than zero.
Fixes progs/test/blitfb.c test.
2009-10-27 17:00:31 -06:00
Brian Paul
4c2a7bc438
glsl: fix memory leak
...
A slightly modified version of a patch from Vinson Lee.
2009-10-27 17:00:30 -06:00
Eric Anholt
4f9f5a7840
i915: Fix driver for the miptree x/y offset changes.
...
Bug #24734 .
2009-10-27 17:00:30 -06:00
Brian Paul
e9b17d6477
i965: be clear that the Fallback field is a boolean, not a bitfield
2009-10-27 16:59:44 -06:00
Brian Paul
755161b888
Revert "i965: fix hacked Fallback usage in brw_prepare_vertices()"
...
This reverts commit 8810b8f671
.
It turns out the i965 driver uses the intel->Fallback field as a boolean,
not as a bitmask. The intelFallback() function is a no-op in the i965
driver. It would have been nice if there were some comments about this.
I'll fix that next...
2009-10-27 16:59:44 -06:00
Vinson Lee
b7ab7d3627
draw: Fix memory leak.
...
This would only be hit if we got and invalid index_size.
2009-10-27 16:59:44 -06:00
Brian Paul
b73c4ad98b
docs: document Intel glBitmap fixes
2009-10-27 16:59:44 -06:00
Brian Paul
fe818ea797
intel: fix GL state bugs in intel_texture_bitmap()
...
Need to push texture state and polygon state too.
Fixes rendering glitches seen in progs/demos/engine when changing
the rendering mode (wireframe, texture modes).
This makes bitmap rendering a little slower, unfortunately.
2009-10-27 16:59:43 -06:00
Christoph Bumiller
7d967b9b7c
nv50: activate more lanes in a warp
...
Some cards have crippling defaults set and use only 4
of 32 lanes. This should activate 16 on these.
Those that allow 32 by default should still do so.
Found out by Marcin Kościelnicki.
2009-10-28 00:57:18 +01:00
Jakob Bornecrantz
8a1f239ca9
st/xorg: Adopt to new dirty clip rect type
2009-10-27 17:40:55 +01:00
Vinson Lee
50e113e375
progs/tests: Fix MSVC build.
2009-10-26 15:03:52 -06:00
José Fonseca
ad0975f701
scons: Define _USE_MATH_DEFINES on MSVC.
2009-10-26 15:17:26 +00:00
Brian Paul
87127c83dc
windows: added remap.[ch] to project files
...
Untested. Other updates may be needed to reflect the current source files.
2009-10-26 09:06:00 -06:00
Chia-I Wu
c9d715da39
mesa: Add remap.c to SConscript.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-26 09:01:29 -06:00
Zack Rusin
b5fb60041e
st/xorg: initialize indexes before reswizzling for yuv
2009-10-26 08:15:48 -04:00
Zack Rusin
0b069d648b
st/xorg: stop overflowing yuv buffers
2009-10-26 08:15:48 -04:00
Zack Rusin
a9f8baf00b
st/xorg: add yuv vertex shader
...
plus some general fixes
2009-10-26 08:15:48 -04:00
Zack Rusin
6b8ce4cc4f
st/xorg: add yuv shaders
2009-10-26 08:15:48 -04:00
Marek Olšák
5241b9568c
r300g: read occlusion query results from both Z pipes on RV530
2009-10-26 02:07:32 +01:00
Marek Olšák
827002f5ff
r300g: add cubemap support
...
Also, set a pitch for rectangles only.
2009-10-26 02:07:26 +01:00
Brian Paul
d8ded352ec
progs/tests: disable blending while drawing text
2009-10-25 18:10:45 -06:00
Brian Paul
11caea687e
mesa: choose texture format in core mesa, not drivers
...
Call the ctx->Driver.ChooseTextureFormat() function from core Mesa's
_mesa_[Copy]TexImage functions instead of in the driver functions.
One less thing for drivers to do.
2009-10-25 18:06:24 -06:00
Brian Paul
355b5bde50
mesa: remove _mesa_compressed_texture_size_glenum() stub
2009-10-25 17:32:56 -06:00
Brian Paul
20c6c58532
mesa: remove _mesa_compressed_row_stride()
2009-10-25 17:25:46 -06:00
Brian Paul
e3f2efc4f1
mesa: remove calls to _mesa_compressed_row_stride()
2009-10-25 17:23:37 -06:00
Brian Paul
c83b758760
glide: remove _mesa_compressed_row_stride() calls
...
And fix incorrect first parameter.
2009-10-25 17:21:27 -06:00
Brian Paul
253e7fee5d
mesa: remove _mesa_compressed_row_stride() calls
2009-10-25 17:21:11 -06:00
Brian Paul
2594168e9f
mesa: begin removing _mesa_compressed_row_stride() calls
...
Use equivalent _mesa_format_row_stride() function instead.
2009-10-25 17:20:24 -06:00
Brian Paul
82bcc1c5d2
mesa: simplify texture_row_stride() helper
2009-10-25 17:15:02 -06:00
Brian Paul
07ad6393cb
mesa: fix-up error checking related to compressed texture block size
2009-10-25 17:07:27 -06:00
Brian Paul
54bb414e00
mesa: clean-up, simplify compressed texture size checking
2009-10-25 16:59:08 -06:00
José Fonseca
3a49497f10
gallium: Move enum pipe_error into p_defines.h.
...
It's really just another define. No need for its own header.
2009-10-25 21:11:54 +00:00
José Fonseca
88e08d7c6d
llvmpipe: Human friendlier sampler state dump.
2009-10-25 12:27:14 +00:00
José Fonseca
47f0529806
util: Human readable output of texture states.
2009-10-25 12:26:39 +00:00
José Fonseca
5fcb75758c
llvmpipe: Dump the sampler state of the shader key.
2009-10-25 11:49:01 +00:00
José Fonseca
e4c5e01c10
llvmpipe: Immediate multiplication.
2009-10-25 11:48:17 +00:00
José Fonseca
e1342f871b
llvmpipe: Fast path for sampling rgba8 textures with linear filtering.
...
Implement Keith's suggestion of doing most of the sampling with 16x8
and 8x16 AoS, and only doing the conversion to floating point SoA at
the very last step.
Improves gloss performance by 10%.
2009-10-25 09:53:49 +00:00
José Fonseca
f3893ca9c8
llvmpipe: Make lerping work for 8.8 fixed point values.
2009-10-25 09:53:49 +00:00
José Fonseca
bfd7a9ca96
llvmpipe: New module to help make assertions about formats.
2009-10-25 09:53:49 +00:00
José Fonseca
47d241be9f
llvmpipe: New function to unpack rgba8 formats into 4 x u8n AoS.
2009-10-25 09:53:49 +00:00
José Fonseca
abff4214ef
llvmpipe: Split the format swizzling step from the unpacking.
2009-10-25 09:53:48 +00:00
José Fonseca
8d80fd3f55
llvmpipe: Allow different signs when unpacking.
2009-10-25 09:53:48 +00:00
José Fonseca
b544ab7299
llvmpipe: Add inlines to quickly generate types matching the native SIMD register bitwidth.
2009-10-25 09:53:48 +00:00
José Fonseca
a55b305c5b
llvmpipe: Merge lp_build_load_rgba_soa into lp_build_sample_texel.
2009-10-25 09:53:48 +00:00
José Fonseca
bc93e9181c
llvmpipe: Factor our pixel offset computation.
2009-10-25 09:53:48 +00:00
José Fonseca
fedd054d53
llvmpipe: Share testing infrastructure with lp_test_format.
2009-10-25 09:53:48 +00:00
José Fonseca
17afb6dd69
llvmpipe: Eliminate lp_build_store_rgba_aos.
2009-10-25 09:53:48 +00:00
José Fonseca
232b586464
llvmpipe: Eliminate lp_build_load_rgba_aos.
2009-10-25 09:53:48 +00:00
José Fonseca
b4f6907b8d
llvmpipe: Move a few format/sampling functions into better space.
2009-10-25 09:53:47 +00:00
Marek Olšák
c2df759cd7
r300g: fix redefining mipmaps and fetching from them
2009-10-25 10:16:59 +01:00
Marek Olšák
118dfe1688
r300g: added support for 3D textures
...
Mipmaps not tested. Also, I am not sure why piglit/texturing/tex3d needs
to have color tolerance +-1 to pass. The classic Mesa driver doesn't
need that.
2009-10-25 08:06:19 +01:00
Brian Paul
d6ee86c77a
mesa: remove _mesa_compressed_texture_size()
...
Use _mesa_format_image_size() instead.
2009-10-24 16:50:00 -06:00
Brian Paul
4c00981b22
mesa: remove ctx->Driver.CompressedTextureSize() hook
...
It always just called _mesa_compressed_texture_size() anyway.
2009-10-24 16:34:25 -06:00
Brian Paul
35efc6a1b3
mesa: change compressed texture size calls
...
Replace calls to ctx->Driver.CompressedTextureSize with calls to
_mesa_format_image_size. The former always called the later.
2009-10-24 16:28:27 -06:00
Brian Paul
bea245ac2f
mesa: minor clean-ups in _mesa_store_compressed_texsubimage2d()
2009-10-24 12:04:09 -06:00
Brian Paul
5c82827696
mesa: simplify _mesa_compressed_row_stride(), _mesa_compressed_image_address()
...
_mesa_compressed_row_stride() can go away soon.
_mesa_compressed_image_address() can be generalized and moved to formats.c
2009-10-24 11:52:36 -06:00
Brian Paul
1ad9671db7
mesa: s/GLuint/gl_format/
2009-10-24 11:41:25 -06:00
Brian Paul
2c3787f513
mesa: move assertion after declaration
2009-10-24 11:34:27 -06:00
Brian Paul
d255aaf54f
mesa: remove hard-coded block sizes
2009-10-24 11:33:58 -06:00
Brian Paul
7b16c43e43
mesa: added _mesa_get_format_block_size()
2009-10-24 11:33:10 -06:00
Brian Paul
51bc12d623
progs/tests: fix sub texture offsets
2009-10-24 11:08:01 -06:00
Brian Paul
bee6794eb1
mesa: added _mesa_get_format_name()
2009-10-24 08:43:16 -06:00
Brian Paul
eb732b1bbb
mesa: additional comments in format code
2009-10-24 08:41:08 -06:00
Joakim Sindholt
94a63dccdd
r300g: fix scons build yet again
2009-10-24 02:43:21 +02:00
Brian Paul
46a784b7fd
Merge branch 'mesa_7_6_branch'
2009-10-23 18:38:43 -06:00
Brian Paul
26f1ad65b9
mesa: simplify att->CubeMapFace assignment
2009-10-23 18:31:03 -06:00
Brian Paul
346250b190
mesa: refactor, new print_shader_info()
2009-10-23 18:31:03 -06:00
Brian Paul
81a4d34f07
mesa: rework error checking code for glGetCompressedTexImage()
...
Do all error checking in new getcompressedteximage_error_check() func.
Move some additional PBO checks out of the driver fallbacks into the
error checking functions.
2009-10-23 18:31:03 -06:00
Brian Paul
d66965c9a1
mesa: remove misplaced VERBOSE_TEXTURE tests
2009-10-23 18:31:02 -06:00
Brian Paul
9b50ceac03
mesa: more detailed error messages in fbo code
2009-10-23 18:31:02 -06:00
Zack Rusin
b17c885a8a
st/xorg: fix text with component alpha rendering
2009-10-23 19:39:16 -04:00
Eric Anholt
49d402e275
Merge remote branch 'origin/mesa_7_6_branch'
...
Conflicts:
src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_mipmap_tree.c
src/mesa/drivers/dri/intel/intel_mipmap_tree.h
src/mesa/drivers/dri/intel/intel_tex_copy.c
src/mesa/drivers/dri/intel/intel_tex_image.c
2009-10-23 15:21:05 -07:00
Eric Anholt
bfd51dc34d
i965: Annotate _NEW_COLOR dependency for brw_update_renderbuffer_surface().
2009-10-23 14:13:57 -07:00
Christoph Bumiller
683722740c
nv50: do SIGN_SET as one instruction
2009-10-23 22:24:13 +02:00
Christoph Bumiller
99e728a13e
nv50: fix saturation outside of tx_insn case
2009-10-23 22:24:09 +02:00
Christoph Bumiller
ad67326f12
nv50: allow all 127 TEMP regs
...
We should really learn to not waste so many though.
2009-10-23 22:24:03 +02:00
Christoph Bumiller
c738c9ab67
nv50: fix address reg code
...
Contained some rather obvious thinking errors before,
and didn't consider offsets from TGSI ADDRESS regs.
2009-10-23 22:17:44 +02:00
Christoph Bumiller
255a90a7bd
nv50: add depth texture formats, and a few others, too
2009-10-23 22:17:34 +02:00
Vinson Lee
952bf63e2c
progs/tests: Fix MSVC build.
2009-10-23 13:49:13 -06:00
Patrice Mandin
d9014a13e7
nouveau: nv30: Relax some limits. We can render to z24s8 buffer even if color buffer is 16 bits.
2009-10-23 18:42:21 +02:00
Patrice Mandin
c84a056764
nouveau: nv30: use r5g6b5 as z16 format
2009-10-23 18:40:13 +02:00
Chia-I Wu
6e99e6ddbf
glapi: Always build libglapi.a.
...
This is made possible by making glapioffsets.h and glapidispatch.h
internal headers of glapi. They should only be included indirectly
through dispatch.h by mesa.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-23 09:10:04 -06:00
Chia-I Wu
22884db174
glapi: Move dispatch marcos to glapidispatch.h.
...
dispatch.h is kept as a wrapper to glapidispatch.h.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-23 09:10:04 -06:00
Chia-I Wu
3d16088ff0
mesa/dri: Remove extension_helper.h.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-23 09:10:04 -06:00
Chia-I Wu
17ef1f6074
mesa: Enable remap table in core.
...
This enables the remap table in core. driInitExtensions is adapted to
use the remap table. All uses of extension_helper.h are replaced by
remap_helper.h. The chicken-egg problem of the DRI drivers is also
solved.
It is now also possible to pass NULL extensions to driInitExtensions.
It will cause driInitExtensions to map all known functions. This
functionality is used by software drivers and EGL_i915.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-23 09:10:04 -06:00
Chia-I Wu
d7d3fb925b
mesa/main: Add support for remap table.
...
This commit only adds the source files. It is supposed to replace the
remap table in DRI drivers.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-23 09:10:04 -06:00
Zack Rusin
bec5230a1f
st/xorg: lots of fixes related to compositing
...
fixes transformations, rendering with multiple bound textures, xrender
matrix conversions plus some cleanups
2009-10-23 11:11:00 -04:00
Andre Maasikas
d4d4733e6c
r600: remove duplicate stride setting
...
Stride is set already in r700SetVertexFormat and there it works
correctly for 0 also
2009-10-23 17:16:46 +03:00
Andre Maasikas
738b394769
r600: for position invariant programs reading vert_pos is not always known at this point
2009-10-23 17:16:23 +03:00
Keith Whitwell
da253319f9
gallium: remove extended negate also, and also the ExtSwz token
...
Likewise, the extended negate functionality hasn't been
used since mesa switched to using tgsi_ureg to build programs,
and has been translating the SWZ opcode internally to a single MAD.
2009-10-23 14:50:02 +01:00
Keith Whitwell
8a571b809a
cell: typo from ExtSwizzle commit
2009-10-23 14:38:30 +01:00
Keith Whitwell
b9cb74c7f8
gallium: remove the swizzling parts of ExtSwizzle
...
These haven't been used by the mesa state tracker since the
conversion to tgsi_ureg, and it seems that none of the
other state trackers are using it either.
This helps simplify one of the biggest suprises when starting off with
TGSI shaders.
2009-10-23 14:31:24 +01:00
Keith Whitwell
4e1d51786e
gallium: remove noise opcodes
...
Provide a dummy implementation in the GL state tracker (move 0.5 to
the destination regs).
At some point, a motivated person could add a better
implementation of noise. Currently not even the nvidia
binary drivers do anything more than this. In any case, the
place to do this is in the GL state tracker, not the poor
driver.
2009-10-23 13:56:07 +01:00
Keith Whitwell
19403935aa
progs/demos: add fps to multiarb
2009-10-23 13:56:07 +01:00
Cooper Yuan
9b6c86b8be
r300g: last changes's typo, miss a include file
2009-10-23 16:40:31 +08:00
Cooper Yuan
6df12aad2f
r300g: add flush_frontbuffer function to display video surface
2009-10-23 14:46:29 +08:00
Cooper Yuan
0072a26662
g3dvl: pass display and screen to g3dvl when creating video private context
2009-10-23 14:44:27 +08:00
Alex Deucher
45eb9d2f6d
r600: remove remains of old tnl pipeline
2009-10-23 01:01:19 -04:00
Alex Deucher
fc38a3cfe8
r600: fix render size prediction
2009-10-23 01:01:19 -04:00
Alex Deucher
614e8f2203
r600: remove old tnl pipeline
2009-10-23 01:01:19 -04:00
Alex Deucher
95328c7cf9
r600: clean up context creation
...
Make it more consistent with other radeon drivers.
2009-10-23 01:01:18 -04:00
Ian Romanick
286611d990
Revert "Store clipping distance for user clip planes as part of vertex processing"
...
This reverts commit f058b25881
.
This change is completely wrong in so many ways. When clip distances
are generated as part of vertex processing, they must be interpolated
to perform clipping. Geometric clipping goes right out the window.
2009-10-22 19:21:21 -07:00
Brian Paul
1160acbfea
dri/drivers: update driNewRenderbuffer() to take a gl_format
...
Now pass a specific MESA_FORMAT_x token to indicate the renderbuffer's
format. This is better than passing a GLenum and having to guess the
specific format.
I'm unable to test all the drivers, but any issues should be easy to fix.
2009-10-22 19:57:32 -06:00
Brian Paul
cf0e25d4c8
radeon: simplify radeon_create_renderbuffer()
2009-10-22 19:57:06 -06:00
Brian Paul
ab9d1011f5
Merge branch 'mesa_7_6_branch'
2009-10-22 18:38:19 -06:00
Brian Paul
347fb3737b
docs: document 'useprog' debug option
2009-10-22 18:35:13 -06:00
Brian Paul
fdce832437
mesa: fix up vbo comments
2009-10-22 18:35:13 -06:00
Brian Paul
488e67bab2
mesa: added _mesa_dump_texture()
2009-10-22 18:35:12 -06:00
Zack Rusin
fb22e80169
st/xorg: fix the makefile when used with new xextproto
2009-10-22 19:33:04 -04:00
Corbin Simpson
04ec113e09
r300g: Enable more stuff in r300_screen, cleanup comments.
...
Also enable 24-bit depth buffers without stencil.
2009-10-22 14:29:48 -07:00
Corbin Simpson
ff9e1c0198
r300g: Cleanup PSC setup math a bit and stop using Draw formats.
2009-10-22 14:29:48 -07:00
Christoph Bumiller
198925caa1
nv50: handle PIPE_TEX_FILTER_ANISO case
...
Set the same bits as for linear filtering (in addition
to max anisotropy), and 2 unknown bits I've seen set.
2009-10-22 23:05:12 +02:00
Patrice Mandin
4b8de9bd7c
nouveau: nv30: rewrite so we can render only in depth buffer
2009-10-22 22:01:53 +02:00
Patrice Mandin
f9a69c0f04
nouveau: nv30: use a8r8g8b8 as depth texture format for z24s8
2009-10-22 22:00:46 +02:00
Corbin Simpson
fd7ee2bcb7
Kill off trident.
...
Hm. I could have said "chew trident and spit it out," or perhaps
"spear trident," instead. Dohoho.
2009-10-22 12:57:13 -07:00
Corbin Simpson
8e4657a9d4
Nuke s3v.
...
As per FDO #17889 .
2009-10-22 12:29:30 -07:00
Corbin Simpson
06e464c2d5
r300g: Clean up duplicate code in r300_render.
2009-10-22 11:50:51 -07:00
Corbin Simpson
1f7f9bab81
r300g: Move render functions to r300_render.
...
Part of the fastpath cleanup.
2009-10-22 11:50:51 -07:00
Alex Deucher
dd36006a4e
r600: fix depth span macros for format changes
2009-10-22 14:48:45 -04:00
Brian Paul
eb1b8ed148
radeon: fix some renderbuffer format bugs
2009-10-22 12:26:17 -06:00
José Fonseca
bf48447caf
scons: Hack LLVM support on Windows.
...
Doesn't quite work yet though, as small differences in the compilation flags
used when building LLVM and Mesa cause link failures for STL symbols.
2009-10-22 19:12:14 +01:00
José Fonseca
719984afca
llvmpipe: Avoid yet another variable size array.
2009-10-22 19:12:14 +01:00
José Fonseca
ba8c11923a
llvmpipe: Define rdtsc for MSVC.
2009-10-22 19:12:14 +01:00
José Fonseca
9aafa1fbd2
llvmpipe: Avoid variable size arrays.
...
Not really variable size, but MSVC still doesn't like them.
2009-10-22 19:12:14 +01:00
José Fonseca
01b85e2923
llvmpipe: Use the pack/unpack functions for 8bit unsigned norm multiplication.
2009-10-22 19:12:13 +01:00
José Fonseca
4458695bda
llvmpipe: Utility function to double the bit width of a type.
2009-10-22 19:12:13 +01:00
José Fonseca
421507de06
llvmpipe: Factor vector packing/unpacking to a separate source file.
...
These functions will be needed to implement many of the 8bit operations,
and they are quite complex on its own.
2009-10-22 19:12:13 +01:00
José Fonseca
a07437f8a6
llvmpipe: Call util_cpu_detect() from the unit tests.
2009-10-22 19:12:13 +01:00
José Fonseca
4797ce0d19
util: Set cpu endianness too.
2009-10-22 19:12:13 +01:00
José Fonseca
1acd891ed3
scons: Disable more MSVC pedantic security warnings.
2009-10-22 19:12:12 +01:00
Alex Deucher
f8bee0e412
Merge branch 'master' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa
2009-10-22 12:29:36 -04:00
Zack Rusin
1f5b568fbe
st/xorg: cleanup the checks for whether the op is accelerated
2009-10-22 12:21:35 -04:00
Alex Deucher
5e77b61e39
Merge branch 'mesa_7_6_branch' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa
2009-10-22 12:02:31 -04:00
Zack Rusin
c4af8ce69e
st/xorg: lots of render fixes
...
fixes all the blend modes, fixes flushing/finishing semantics, adds
acceleration for the component alpha modes that we can support, fixes
src in mask shader and general cleanups
2009-10-22 11:53:10 -04:00
Chia-I Wu
4e2bdd6635
progs/egl: Add support for pixmap and pbuffer surface to xeglgears.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-22 09:33:27 -06:00
Chia-I Wu
60cf250d47
egl_glx: Add support for eglWaitClient and eglWaitNative.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-22 09:33:27 -06:00
Chia-I Wu
7ffe64a7ae
egl_glx: Clean up eglGetProcAddress.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-22 09:33:27 -06:00
Chia-I Wu
a206436577
egl_glx: Clean up context functions.
...
This lifts the requirement that a context must be direct.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-22 09:33:27 -06:00
Chia-I Wu
c407c70244
egl_glx: Clean up surface functions.
...
Separete Drawable and GLXDrawable. Add support for pbuffer and pixmap
surfaces on GLX <= 1.3. Remove surface binding code that will never
work.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-22 09:33:27 -06:00
Chia-I Wu
78c3a351bc
egl_glx: Clean up the initialization code.
...
Proper detection of GLX extensions. Convert fbconfigs or visuals in a
more unified way and validate the resulting configs.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-22 09:33:27 -06:00
Chia-I Wu
326baecd75
egl: Correct conversion of native visual type.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-22 09:33:27 -06:00
Ben Skeggs
eebf4b5299
nv50: support 3D class 0x8597, remove redundant unknown chipset detection
2009-10-22 21:56:32 +10:00
Corbin Simpson
511bd5f32b
r300g: Check for NULL Draw during flush.
...
Split from the fastpath WIP.
2009-10-22 00:21:08 -07:00
Corbin Simpson
0a8cd4862c
r300g: Update comments, function names in r300_state_inlines.
2009-10-21 23:26:02 -07:00
Corbin Simpson
034db65f08
r300g: Update comments, asserts, indents in r300_texture.
...
I wish I knew enough about textures to really really REALLY fix that file.
2009-10-21 23:23:37 -07:00
Corbin Simpson
5a653ada41
r300g: Remove unused debug flag.
2009-10-21 22:54:52 -07:00
Corbin Simpson
40247d87d2
r300g: Cleanup old static shader state.
2009-10-21 22:53:37 -07:00
Brian Paul
82ffc5884c
progs/tests: draw Z values as luminance, no pixel zoom
2009-10-21 21:51:19 -06:00
Brian Paul
3c68560866
i915: replace MESA_FORMAT_Z24_S8 with MESA_FORMAT_S8_Z24
...
And change parameter type.
2009-10-21 21:48:03 -06:00
Brian Paul
6e1ddd34c6
radeon: get rid of z24s8 <-> s8z24 conversions in span code
...
Can just use s8z24 everywhere.
Note: the WRITE_DEPTH macro for R600 may need to be fixed.
2009-10-21 21:20:05 -06:00
Brian Paul
c18b022d0d
radeon: replace MESA_FORMAT_Z24_S8 with MESA_FORMAT_S8_Z24
...
Core Mesa deals with MESA_FORMAT_S8_Z24 everywhere it should so
we shouldn't have to use MESA_FORMAT_Z24_S8 anymore.
2009-10-21 21:14:44 -06:00
Brian Paul
68d94a608a
intel: use MESA_FORMAT_S8_Z24 format and avoid z24s8/s8z24 conversions
2009-10-21 20:02:33 -06:00
Brian Paul
4bd70b5cff
i965: change parameter type to gl_format
2009-10-21 20:00:43 -06:00
Brian Paul
c55b355fd4
mesa: use MESA_FORMAT_X8_Z24
2009-10-21 19:58:00 -06:00
Brian Paul
832f29770d
mesa: use MESA_FORMAT_X8_Z24 format
2009-10-21 19:56:18 -06:00
Brian Paul
e4c700dbbf
mesa: added MESA_FORMAT_X8_Z24 format
...
24-bit Z in 32-bit pixel. We could probably use the MESA_FORMAT_S8_Z24
format but this there's a few places where we explicitly don't want stencil.
This format may go away at some point in the future.
2009-10-21 19:55:44 -06:00
Marc Dietrich
b2b239691d
gallium/util: fix cpu detection on ppc
...
As we are compiling with -D_BSD_SOURCE, sigjmp_buf and siglongjmp
should be replaced by the non-sig functions (see man 3 setjmp).
Tested on linux/cell.
2009-10-21 15:15:03 -06:00
Brian Paul
2cc5a0e6bb
mesa: added _mesa_dump_renderbuffers() debug code
2009-10-21 15:14:30 -06:00
Patrice Mandin
d364f662c6
nouveau: nv30: Do not use assert to return NULL
2009-10-21 22:01:03 +02:00
Patrice Mandin
cb351bdd6e
nouveau: nv30: check number of colour buffers to bind
2009-10-21 21:56:09 +02:00
José Fonseca
ce98860012
llvmpipe: Remove extraneous name in lp_type pre-declaration.
2009-10-21 15:53:37 +01:00
Corbin Simpson
3b8dad47f8
r300g: No debug in r300_state.
2009-10-21 06:52:25 -07:00
Corbin Simpson
6a448a525b
r300g: Cleanup header includes.
2009-10-21 06:52:25 -07:00
Corbin Simpson
babadb8bb9
r300g: Don't use getenv; use debug_get_*_option instead.
2009-10-21 06:52:24 -07:00
Corbin Simpson
5a0598f235
r300g: Don't use the hashtable internally.
...
As osiris pointed out, glxgears slowly gets slower for some reason
when it's enabled, and it's not helping at the moment, so just turn
it off.
2009-10-21 06:52:24 -07:00
Corbin Simpson
b589e39809
r300g: Examine vertex attribute type on HW TCL too.
2009-10-21 06:52:23 -07:00
Corbin Simpson
b21df2620e
r300g: Also kill r300_shader_inlines with fire.
2009-10-21 06:52:23 -07:00
Corbin Simpson
58abfebaad
r300g: Kill r300_surface with fire.
...
If you really want to see it again, check the history.
2009-10-21 06:52:22 -07:00
Eric Anholt
d56125a298
intel: Fix flipped condition in ARB_sync GetSYnciv(GL_SYNC_STATUS).
...
Bug #24435
2009-10-20 14:52:58 -07:00
Eric Anholt
cbd20e18a0
meta: Fix the BufferSubData in meta clear to be BufferData.
...
Fixes a 3.4% +/- 1.3% performance regression in my GL demo (n=3). The
other meta code could probably also use the same treatment.
2009-10-20 13:07:49 -07:00
Jakob Bornecrantz
478332b0c1
st/xorg: Move drm init to own function
2009-10-20 18:11:51 +02:00
Jakob Bornecrantz
fc07ca004a
trace: Check for destroy before calling it
2009-10-20 17:19:05 +02:00
Jakob Bornecrantz
a9f71b3bba
st/xorg: Cleanly shutdown
2009-10-20 17:19:04 +02:00
Jakob Bornecrantz
5f8f14e5ca
st/xorg: Remove output functions not used
2009-10-19 07:52:16 +02:00
Zack Rusin
b7fbcfdb3b
st/xorg: makefile garbage
2009-10-19 23:48:38 -04:00
Zack Rusin
a39a3cc14e
st/xorg: implement basic src/mask transformations
...
plus fix filters
2009-10-19 23:45:31 -04:00
Corbin Simpson
e5f1f6a0be
r300g: Demonstratory kludge to unbreak glxgears.
...
We *must* recalculate something in vformat every rebind; let's see
if we can't narrow it down a bit.
2009-10-19 14:43:33 -07:00
Corbin Simpson
973aab1a52
dri-st: Add EXT_provoking_vertex.
...
Hm, I could have sworn I did this before?
2009-10-19 14:43:32 -07:00
Jakob Bornecrantz
e1b39c673d
st/xorg: Switch to set_mode_major
2009-10-18 15:46:25 +02:00
Jakob Bornecrantz
846da0bfda
st/xorg: Massivly redo root pixmap creation
2009-10-18 15:46:25 +02:00
Jakob Bornecrantz
e9e6152cb3
st/xorg: Clean up cursor functions a bit
2009-10-18 15:46:25 +02:00
Jakob Bornecrantz
b8843c6056
st/xorg: Support more then one output of a given type
2009-10-18 15:46:24 +02:00
Jakob Bornecrantz
68b5dc9634
st/xorg: Change how disable accel is handled
2009-10-18 15:46:24 +02:00
Christoph Bumiller
ec5c23551c
nv50: add support for address regs
...
Allow indirect uniform access and increase the
limit on parameters from 128 to 512.
2009-10-19 18:25:09 +02:00
Christoph Bumiller
eb7ea97e7f
nv50: cleanup emit_kil
2009-10-19 18:25:09 +02:00
Christoph Bumiller
2eef2017ac
nv50: implement TGSI_OPCODE_CMP
2009-10-19 18:25:09 +02:00
Christoph Bumiller
f204eb1842
nv50: quick fix for insn src negation
...
We only have a per nv50_reg negation flag, if an
nv50_reg is used more than once in a TGSI op with
different sign modes, we'd generate wrong code.
We probably can't do much better without more
invasive changes.
2009-10-19 18:25:09 +02:00
Christoph Bumiller
1635e8d6f4
nv50: add support for DDX and DDY opcodes
2009-10-19 18:25:09 +02:00
Christoph Bumiller
c0e80cf0e9
nv50: submit user vbo data through the fifo
...
Requesting a new real buffer from the kernel and
copying all the data is wasteful e.g. if only a
few (but widely spread) vertices are accessed.
2009-10-19 18:25:08 +02:00
Christoph Bumiller
fba2eabe13
nv50: use SIFC for TIC, TSC upload
...
Add proper flushes for TIC and TSC and remove
the costly 2D.0110 flush in nv50_flush.
Correct TIC and TSC bo sizes.
2009-10-19 18:25:08 +02:00
Christoph Bumiller
6ab2fcca9d
nv50: nicer texture format switch
...
Similar to nv40.
2009-10-19 18:25:08 +02:00
Alex Deucher
620270c76e
Merge branch 'mesa_7_6_branch' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa
...
regenerated lex.yy.c
2009-10-19 12:10:59 -04:00
Ben Skeggs
35b98e2884
nouveau: implement is_{texture,buffer}_referenced properly
2009-10-19 09:49:02 +10:00
Ben Skeggs
869d3eea37
drm/nv50: write tic/tsc setup to correct slots when skipping units
2009-10-19 09:49:02 +10:00
Corbin Simpson
16a06fea73
r300g: Fix up a bunch of warnings.
2009-10-18 16:09:01 -07:00
Corbin Simpson
d2e29b502e
r300g: Add another ZTOP condition.
...
I don't even know if texkill works right now.
2009-10-18 10:30:18 -07:00
José Fonseca
838da1d4ae
llvmpipe: Allocate texture storage for whole quads.
2009-10-18 14:31:58 +01:00
Corbin Simpson
bb567357bc
gallium: Permit surface_copy and surface_fill to be NULL.
...
Uf. Lots of files touched. Would people with working vega, xorg, dri1, etc.
please make sure you are not broken, and fix yourself up if you are.
There were only two or three places where the code did not have painful
fallbacks, so I would advise st maintainers to find less painful workarounds,
or consider overhauling util_surface_copy and util_surface_fill.
Per ymanton, darktama, and Dr_Jakob's suggestions, clear has been left as-is.
I will not add PIPE_CAP_BLITTER unless it is deemed necessary.
2009-10-17 21:32:56 -07:00
Corbin Simpson
bfd877e470
r300g: Squash format warning.
...
Won't ever be supported.
2009-10-17 20:53:19 -07:00
Corbin Simpson
11056ca86f
r300g: Use a dirty test to bring framerate back up.
...
This is just split out from the next commit, that's all.
2009-10-17 20:47:45 -07:00
Corbin Simpson
51173e4e53
r300g: Also have rs_block keyed to the current shader combo.
...
Eliminates part of the glxgears corruption here. Need to clean up PSC more,
to get rid of the rest of it.
2009-10-17 20:29:27 -07:00
Corbin Simpson
ce9ae4a483
r300g: Fix u_hash_table rename.
2009-10-17 20:05:23 -07:00
Corbin Simpson
4a98d19d1b
Merge branch 'master' of ssh://git.freedesktop.org/git/mesa/mesa
2009-10-17 19:58:23 -07:00
Patrice Mandin
114417a2f5
nouveau: nv40: Use same workaround as i915 for segfault related to vbo
2009-10-17 20:49:18 +02:00
Patrice Mandin
66aab9a1f6
nouveau: nv30: Remove duplicate case. Was a typo for X8R8G8B8, but that will never be use for front buffer.
2009-10-17 20:46:19 +02:00
Patrice Mandin
67356ae047
nouveau: nv30: Use same workaround as i915 for segfault related to vbo
2009-10-17 20:27:24 +02:00
José Fonseca
5d42e3988d
util: Rename from u_* to util_* while we're at it.
...
To be consistent with the rest.
2009-10-17 11:45:04 +01:00
Chris Wilson
60a39b6799
intel: Disallow relocations to the byte beyond the end of the buffer
2009-10-17 08:26:54 +01:00
Brian Paul
a335d334d4
mesa: fix/update some comments
2009-10-16 13:07:43 -06:00
Brian Paul
f094b86bb5
mesa: lift default symlinks target into Makefile.template
...
Driver Makefiles can still add symlink dependencies/rules if needed.
2009-10-16 13:07:43 -06:00
Brian Paul
db2046580f
mesa: use EXTRA_MODULES and SUBDIRS to build r300 compiler
...
This is a bit cleaner and avoids rebuilding the r300_dri.so library all
the time.
2009-10-16 13:07:43 -06:00
Brian Paul
d9fd207133
mesa: added SUBDIRS support in dri/Makefile.template
2009-10-16 13:07:43 -06:00
Brian Paul
f0503726bf
mesa: move a comma
2009-10-16 13:07:43 -06:00
Brian Paul
2ee7fd8d58
mesa: added MESA_GLSL=useprog debug flag
...
This logs glUseProgram() calls to stderr.
2009-10-16 13:07:43 -06:00
Corbin Simpson
3e56bef5a5
radeon-gallium: Use debug_get_bool_option instead of getenv.
2009-10-16 09:45:07 -07:00
Corbin Simpson
fc8a156cfc
r300g: Use a hash table to look up vertex info.
...
Need to move rs_block to this, too.
Also, I'm getting massive amounts of flicker for some reason; I bet we've gotta
re-re-examine PSC and friends. :C
2009-10-16 08:43:02 -07:00
Corbin Simpson
3924d86115
util: Change function names to begin with u_.
...
Avoids link-time clashes with Mesa's internal hash table.
2009-10-16 08:43:02 -07:00
José Fonseca
166957abeb
progs/tests: Use rand() instead of random().
...
Forgot these on previous commit.
2009-10-16 11:42:13 +01:00
José Fonseca
699260b195
progs/tests: Use rand() instead of random().
...
More portable. Same implementation on Linux.
2009-10-16 11:39:29 +01:00
Vinson Lee
60b6c74583
prog/tests: Fix MSVC build.
2009-10-16 11:36:09 +01:00
Corbin Simpson
e4f21be13a
r300g: Set logical ID for each emitted texture/sampler.
...
multitexarray works on my r300, but texrect doesn't.
2009-10-15 16:58:26 -07:00
Brian Paul
fa3046431a
dri/common: updated #includes
2009-10-15 14:57:45 -06:00
Brian Paul
a37c9ac8ee
dri/common: use _mesa_little_endian() and update comments
2009-10-15 14:54:32 -06:00
Brian Paul
9bf2aa3329
dri/common: fix broken _dri_texformat_* initializations
2009-10-15 14:49:53 -06:00
Patrice Mandin
a5a05fd782
nouveau: nv30: Hack to enforce same number of bits as front buffer, for render targets
2009-10-15 22:41:09 +02:00
Patrice Mandin
13580aa3d1
nouveau: nv30: refuse binding a colour buffer with a zeta buffer with different bits, till the backend can tell Mesa not to do that.
2009-10-15 21:58:44 +02:00
Zack Rusin
108273c5ed
st/xorg: refix source over
2009-10-15 15:23:04 -04:00
Brian Paul
5b7d9053a0
progs/egl: put declarations before code
2009-10-15 13:00:03 -06:00
Chia-I Wu
6c21c8862b
egl: Rework the synchronization primitives.
...
This adds error checking to the synchronization primitives. And
eglWaitGL is now implemented by eglWaitClient.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-15 12:54:00 -06:00
Chia-I Wu
57da499d7b
egl: Rework eglSwapInterval.
...
This adds error checking to eglSwapInterval and clamps the swap
interval.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-15 12:54:00 -06:00
Chia-I Wu
bbfd0e2615
egl: Rework error checking in eglSwapBuffers.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-15 12:53:58 -06:00
Chia-I Wu
aaa1253b09
egl: Update comments about eglapi.c.
...
Mention that opaque handles are looked up and checked.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-15 12:53:57 -06:00
Chia-I Wu
6190663120
egl: Rework error checking in eglGetCurrentSurface.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-15 12:53:57 -06:00
Chia-I Wu
8bb2485ed0
egl: Include GL header in eglconfigutil.h.
...
This is just a cosmetic change.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-15 12:53:56 -06:00
Chia-I Wu
29d115092e
egl: Fix GLX_USE_TLS build.
...
Remove an extraneous semicolon.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-15 12:53:56 -06:00
Chia-I Wu
2fc1614e7a
egl: Fix eglCheckConfigHandle.
...
A stupid bug by me made the check void.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-15 12:53:55 -06:00
Brian Paul
c47b03ebeb
radeon: initialize renderbuffer Format field in radeon_create_renderbuffer()
...
Plus, use MESA_FORMAT_S8_Z24 everywhere.
2009-10-14 13:15:05 -06:00
Jakob Bornecrantz
72fd1cf292
trace: Handle transfer returning null
2009-10-14 11:44:09 +02:00
Zack Rusin
074e069910
st/xorg: fix most of the composition modes
2009-10-15 00:06:43 -04:00
Corbin Simpson
a82fc97c64
r300g: Move ZTOP to its own state atom.
...
It may seem pointless, but this avoids a fair amount of predicted CSO pain.
2009-10-14 20:06:38 -07:00
Brian Paul
91bd87c06e
progs/demos: try different depth formats in fbo_firecube.c
2009-10-14 19:13:32 -06:00
Brian Paul
85fb3e4027
docs: document more MESA_GLSL env var options
2009-10-14 19:09:08 -06:00
Brian Paul
24e2f61469
mesa: assorted top-level Makefile clean-ups
2009-10-14 19:09:08 -06:00
Brian Paul
2fd5cb7133
mesa: added VERBOSE_SWAPBUFFERS
2009-10-14 19:08:39 -06:00
Brian Paul
f9784072fe
vbo: clean-ups, reformatting
2009-10-14 19:08:38 -06:00
Brian Paul
ade1cc9924
mesa: added MESA_VERBOSE option 'draw' to debug glDrawArrays/Elements, etc.
2009-10-14 19:08:38 -06:00
Brian Paul
d9099f8602
mesa: rename VERBOSE_IMMEDIATE->VERBOSE_MATERIAL to reflect what it does
2009-10-14 19:08:38 -06:00
Brian Paul
73fc0ca4c3
mesa: remove unused ctx->Driver.PrioritizeTextures() hook
2009-10-14 19:08:38 -06:00
Brian Paul
0187e042b6
mesa: remove unused ctx->Driver.TextureMatrix() hook
2009-10-14 19:08:38 -06:00
Jakob Bornecrantz
ef067b5f01
st/xorg: Fix dpms include problems
2009-10-13 19:16:21 +02:00
Jakob Bornecrantz
5c4bdbd825
autoconf: Fix case for not having package
2009-10-15 01:25:48 +01:00
Zack Rusin
59cf40059a
st/xorg: get transparency on fills working (fixes Qt/KDE apps)
2009-10-14 19:04:29 -04:00
Jakob Bornecrantz
96c9b39a6a
i915g: Fix warnings
2009-10-14 23:05:55 +01:00
Alex Deucher
f22c427bd6
r600: enable EXT_vertex_array_bgra extensions
2009-10-14 14:19:12 -04:00
José Fonseca
3ce3c03257
util: Fix cpu detection on Windows. Cleanup.
2009-10-14 17:27:06 +01:00
José Fonseca
4046c3bab4
llvmpipe: Use ALIGN_STACK.
2009-10-14 17:24:22 +01:00
José Fonseca
68edb4eac5
gallium: New ALIGN_STACK macro to tell gcc to align stack pointer.
2009-10-14 17:24:22 +01:00
José Fonseca
5ba645f0fb
scons: Disable SSE intrinsics on MinGW.
...
-mstackrealign causes stack corruption on MinGW. And without it the ability
to use SSE instrinsics goes down the drain. Even if we use
__attribute__((force_align_arg_pointer)) for the functions we explicitly
use SSE instrinsics, the SSE code automatically generated by gcc will
cause assertion failures. What a nightmare.
Thankfully LLVM gets this right, so all runtime generated SSE code just
works. rtasm code doesn't assume 16byte alignment. Therefore the bulk of
our performance sensitive code is not affected by this.
Still, intrinsics can be convenient, and it would be nice
to get this working again some day, sp will try to get a reduced test
case.
2009-10-14 17:24:21 +01:00
Brian Paul
9fd7e9ef05
Merge branch 'mesa_7_6_branch'
2009-10-14 09:40:05 -06:00
Brian Paul
ce3801ab87
Merge branch 'mesa_7_6_branch'
2009-10-14 09:22:30 -06:00
Brian Paul
98eb7a14a4
mesa: remove left-over debug printf
2009-10-14 07:52:39 -06:00
Vinson Lee
ea862ec8ff
prog/tests: Fix MSVC build.
2009-10-14 07:52:39 -06:00
Corbin Simpson
fd63f89e95
r300g: Move ztop to derived state.
...
Need to get it into its own atom instead of piggybacking on DSA.
2009-10-14 03:09:41 -07:00
Corbin Simpson
f13e507798
r300g: Compiler warning cleanup.
2009-10-14 01:58:18 -07:00
Dave Airlie
88b697fb0a
r300g: remove buffer add that should be unnecessary.
...
This should be handled in the emit fine
2009-10-14 18:24:34 +10:00
Dave Airlie
fa581580b1
r300g: add QUERY to KITCHEN_SINK
...
I missed this, thanks to Corbin for pointing it out.
2009-10-14 18:24:05 +10:00
Dave Airlie
ce5cba040c
r300g: add one more ZTOP disable bit.
...
Still missing the frag uses kill support, hopefully nha can point that out.
2009-10-14 18:05:14 +10:00
Dave Airlie
51d1cf55da
r300g: port over last parts of oq support.
...
Add support for begin/end in each CS so we don't get any other
processes rendering in between.
TODO:
blame other parts of driver for this not working like Z.
2009-10-14 17:44:19 +10:00
Dave Airlie
47791697ab
r300g: convert query to a state for emitting.
...
This means we don't emit in the begin query but when we have
to flush. Similiar to classic.
TODO:
make query object actually work.
2009-10-14 17:14:43 +10:00
Dave Airlie
c1bee7bdea
r300g: fixup arb occulsion query support.
...
1: add rv530 support
- num z pipes cap
- add proper start/finish query options for rv530
2: convert to use linked list properly.
3: add flushing required check.
4: initial Z top disabling support.
TODO:
make it actually work on my rv530.
2009-10-14 16:53:12 +10:00
Dave Airlie
210481ae16
r300g: attempt to make bo space check sane.
...
This attempts to make r300g do proper bo space checking as opposed
to whatever it was doing now.
Signed-off-by: Dave Airlie <airlied@redhat.com >
2009-10-14 15:13:25 +10:00
Dave Airlie
23c0c820e2
r300g: fix case where texture unit 0 is disabled but unit 1 is enabled.
...
to reproduce, start texrect, disable 0 texture in menu.
Signed-off-by: Dave Airlie <airlied@redhat.com >
2009-10-14 11:42:05 +10:00
Brian Paul
220f72a8d0
mesa: minor tweak to printf string
2009-10-13 16:33:36 -06:00
Brian Paul
435623b3f0
mesa: rework _mesa_read_shader() debug hook
...
Look for shaders named "newshader_<CHECKSUM>" to replace the incoming
shader text. For debug purposes.
2009-10-13 16:33:36 -06:00
Brian Paul
dfefde38c7
mesa: don't print pointer in _mesa_fprint_parameter_list()
2009-10-13 16:33:36 -06:00
Ian Romanick
f058b25881
Store clipping distance for user clip planes as part of vertex processing
...
Once the clipping distance is calculated and stored per vertex, the
distances can be re-used when clipping is actually performed. This
doesn't have any immediate benefit, but it paves the way for
implementing gl_ClipDistance in vertex shaders and result.clip[] in
vertex programs.
This has not produces any oglconform regressions on my G31 system
which uses software TNL.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com >
Reviewed-by: Brian Paul <brianp@vmware.com >
2009-10-13 15:15:20 -07:00
Patrice Mandin
cf33aaf8fe
nouveau: nv30: use texture width,height for render target dimensions
2009-10-13 22:53:32 +02:00
Chia-I Wu
f1c5cab552
egl: Improve logging facility.
...
Add _eglSetLogger and _eglSetLogLevel to allow drivers to change the
message logger or report level.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-13 12:00:37 -06:00
Chia-I Wu
310c76812e
egl: Allow binding to any client API.
...
As a result, EGL_NONE is no longer a valid client API. And it is
possible that no config supports the current bound API.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-13 12:00:36 -06:00
Chia-I Wu
e787ffcd02
egl: Preload a driver if eglGetProcAddress is called early.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-13 12:00:36 -06:00
Chia-I Wu
9061d733d3
egl: Remove core functions from eglGetProcAddress.
...
eglGetProcAddress may not be used to query core (non-extension)
functions.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-13 12:00:36 -06:00
Chia-I Wu
5541988578
egl: Add support for driver built-in.
...
This allows an EGL driver to be compiled together with libEGL.so. It
eliminates the need to specify a driver, or support module loading on
new platforms.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-10-13 12:00:36 -06:00
Zack Rusin
1cc1c3a033
st/xorg: solid fills with masks are supported
...
gradients are supported, but not enabled by default due to little
testing they got
2009-10-13 13:04:00 -04:00
Brian Paul
83f4e72009
intel: fix broken sw generate mipmap path
...
Need to restore code that fixed up the intel_texture_image state.
2009-10-13 10:38:34 -06:00
Zack Rusin
89bb33fb20
st/xorg: fix and enable by default xrender acceleration
...
src in mask was broken
2009-10-13 12:25:13 -04:00
Brian Paul
eefecf5d2a
mesa: whitespace fixes
2009-10-13 09:05:02 -06:00
Brian Paul
c8413351c3
mesa: do RTT check in _mesa_meta_check_generate_mipmap_fallback()
...
We need to check that we can actually render to the texture's format
before doing mipmap generation.
This may fix bug 24219.
2009-10-13 09:05:02 -06:00
Corbin Simpson
ca8cafda0b
r300g: More debug flags.
2009-10-12 21:48:08 -07:00
Corbin Simpson
a4a4f7abc2
r300g: Surface debug.
...
It gets really annoying watching r300g tell me how it's filling surfaces.
Or falling back during filling surfaces.
2009-10-12 21:48:08 -07:00
Corbin Simpson
95a05621eb
r300g: Fallback on surfaces we can't render to or from.
...
Still not sure why st keeps handing down things we can't render to.
2009-10-12 21:48:07 -07:00
Corbin Simpson
36ccdf09b8
r300g: Prevent multiple-use textures from getting incorrectly approved.
2009-10-12 21:48:07 -07:00
Corbin Simpson
05fc9cdfdf
r300g: Clean up texture formats.
2009-10-12 21:48:07 -07:00
Brian Paul
3f928b3552
mesa: save/set/restore texture base/wrap state in blitframebuffer_texture()
2009-10-12 18:12:01 -06:00
Brian Paul
b5d6a8e88f
mesa: minor clean up in check_begin_texture_render()
2009-10-12 18:12:01 -06:00
Brian Paul
47a7535f41
intel: whitespace/formatting clean-up
2009-10-12 18:12:00 -06:00
Brian Paul
3732d0a77d
intel: replace extern decl with #include
2009-10-12 18:12:00 -06:00
Brian Paul
b9c2897957
intel: added INLINE keyword to minify()
...
This is mainly just to silence some warnings.
2009-10-12 18:12:00 -06:00
Brian Paul
c932e21fa8
intel: code clean-ups
2009-10-12 18:12:00 -06:00
Brian Paul
e6594a22f2
intel: pass zslice to intel_miptree_image_offset()
...
This lets us get rid of intel_miptree_depth_offsets() and simplify all
of the calling code.
2009-10-12 18:12:00 -06:00
Brian Paul
15d2ef6024
i965: remove unused var
2009-10-12 18:12:00 -06:00
Vinson Lee
96fd13c1a0
prog/tests: Fix MSVC build.
2009-10-12 18:05:23 -06:00
Brian Paul
6c1cd4c558
mesa: print program Id when printing
2009-10-12 18:05:23 -06:00
Patrice Mandin
a5348d435d
Add support for more 8 and 16 bits formats
2009-10-12 21:03:26 +02:00
Andre Maasikas
7a32c0a19e
r600: implement ProgramStringNotify
...
need this to properly test with piglit/glean vert/fragprog tests
copied mostly from r300, many thanks to osiris, nha, airlied, others...
2009-10-12 16:28:36 +03:00
Andre Maasikas
da66d9e12d
r600: LIT dst.y gets value from src.x
...
seems I overlooked this when removing hardcoded swizzles for this
one previously
2009-10-12 16:28:25 +03:00
Andre Maasikas
97dd35bd6f
r600: DPH adds w comp of second operand, so set first one to 1 instead
2009-10-12 16:28:16 +03:00
Zack Rusin
150d4968e3
st/xorg: initialize pipe in the renderer
2009-10-11 21:52:10 -04:00
Zack Rusin
319a588238
st/xorg: lots of rendering and xv changes
...
extract all the rendering code to xorg_rendedrer, make both exa and xv
share that code. in the process cleanup the rendering code and implement
a lot more of the xv infrastructure.
2009-10-11 20:02:47 -04:00
Zack Rusin
59ae3d5155
configs: fix some remains of the i915simple driver
2009-10-11 20:02:47 -04:00
Zack Rusin
4969d014e5
st/xorg: implement basics of xv
2009-10-11 20:02:47 -04:00
Nicolai Hähnle
f096cc7dc1
r300g: Fix fragment program constants upload on R300
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-10-11 12:41:18 +02:00
Dave Airlie
3611d01a44
r300g: fix blending default state + alpha separate.
...
this makes the default state same as r300
2009-10-11 19:30:23 +10:00
Vinson Lee
cbf46ed670
progs/perf: Fix MSVC build.
2009-10-10 10:45:16 -06:00
Brian Paul
57e3eb1b17
Merge branch 'mesa_7_6_branch'
2009-10-10 09:25:34 -06:00
Brian Paul
39daa763b5
softpipe: fix multi-drawbuffers regression
...
This is part of the fix for bug 24401.
2009-10-10 09:24:22 -06:00
Cooper Yuan
a74e53ddba
r300g: add video surface create and destroy functions
2009-10-10 14:41:44 +08:00
Brian Paul
45e76d2665
mesa: remove a bunch of gl_renderbuffer fields
...
_ActualFormat is replaced by Format (MESA_FORMAT_x).
ColorEncoding, ComponentType, RedBits, GreenBits, BlueBits, etc. are
all replaced by MESA_FORMAT_x queries.
2009-10-08 20:27:27 -06:00
Jakob Bornecrantz
db828ed758
st/xorg: Old X servers don't deal well with failing accesses
2009-10-08 14:54:38 +02:00
Jakob Bornecrantz
6d629d4aa2
st/xorg: More fallback debugging
...
Change the fallback debugging around a bit and do the old commit correctly
2009-10-08 14:50:40 +02:00
Jakob Bornecrantz
992b143b25
Revert "st/xorg: Debug fallbacks for composite as well"
...
This commit included a change that should have been in
its own commit, and turns out that you can do what was
suposed to go in it in much better way as well.
This reverts commit 5080e8bea6
.
2009-10-08 14:46:29 +02:00
Jakob Bornecrantz
5080e8bea6
st/xorg: Debug fallbacks for composite as well
2009-10-08 13:42:44 +02:00
Jakob Bornecrantz
552efdae06
st/xorg: Use A8 textures for depth 8 pixmaps
...
There is no hardware out there that can render to I8 textures.
2009-10-08 13:42:40 +02:00
Jakob Bornecrantz
a31d16cbfa
st/xorg: Fix depth stencil buffers on old X servers
...
Sanity checking is for the weak.
2009-10-08 13:42:31 +02:00
Vinson Lee
76d2ec3a0a
progs/tests: Add tests to Makefile.
2009-10-09 07:24:37 -06:00
Brian Paul
f36123323c
softpipe: restore/fix print_vertex() debug helper
2009-10-09 07:24:37 -06:00
Jakob Bornecrantz
023bab675a
progs/perf: Ignores!
2009-10-09 14:00:15 +01:00
José Fonseca
c595dea23c
util: Force ESI register for cpuid's ebx result.
...
Fixes a segfault and better code. Unfortunately using an arbitrary
register ("=r") causes the gcc to abort when the code is optimized saying
it can't satisfy the constraint. Setting seems to do the trick.
2009-10-09 13:22:42 +01:00
José Fonseca
69588d7ed5
llvmpipe: Eliminate constant mapping/unmapping.
2009-10-09 11:29:33 +01:00
José Fonseca
d54e9f54d0
progs: Remove unused empty file.
2009-10-09 11:08:17 +01:00
José Fonseca
b858257ca6
gdi: Fix the build when llvmpipe is requested (the default) but llvm is not present.
2009-10-09 11:08:17 +01:00
Andre Maasikas
44c6c20b69
r600: fixup KIL instruction a bit
...
- KILLGT takes 2 arguments
- arb KIL has no dst register
- add TODO about clause ending but currently piglit fp-kil passes and
does not hang the card
2009-10-09 11:52:48 +03:00
Brian Paul
90692486aa
docs: bump libdrm version requirement
...
Probably need to bump other version requirements too...
2009-10-08 20:49:36 -06:00
Eric Anholt
859828cc4f
mesa: Bump the required libdrm version to reflect reality.
...
Not all drivers require the latest version, but distros are good at
tracking it since we've got a good record as far as not regressing, and
it sure beats having a weird compile failure in someone else's driver
later on.
2009-10-08 17:18:12 -07:00
Eric Anholt
9b8d2e76c3
i965: Use bo_references for the state cache delete function.
...
This appears to shave about 3% off the CPU usage in cairo-gl for firefox.
2009-10-08 17:12:23 -07:00
Eric Anholt
193dddb04e
intel: Use new drm_intel_bo_references() to avoid flushing.
2009-10-08 17:12:23 -07:00
Brian Paul
f49d53594c
mesa: free display list state after freeing shared state
...
Fixes bug 24402.
2009-10-08 12:50:44 -06:00
Brian Paul
f67bc2e872
Merge branch 'mesa_7_6_branch'
...
Conflicts:
src/mesa/drivers/common/meta.c
2009-10-08 09:28:07 -06:00
Vinson Lee
f7455ad7af
progs/tests: Fix MSVC build.
2009-10-08 08:08:11 -06:00
Brian Paul
f001cc0981
mesa: clean up extended opcode code
2009-10-07 16:51:26 -06:00
Brian Paul
33e9ac20e3
mesa: move gl_list_instruction and gl_list_extensions to dlist.c
2009-10-07 16:41:18 -06:00
Brian Paul
15f05e97aa
mesa: added _mesa_free_display_list_data()
2009-10-07 16:32:25 -06:00
Brian Paul
fc995c7298
mesa: clean-up display list mem allocation, fix NULL handling
...
The -1 term in alloc_instruction() foiled later NULL pointer checks.
2009-10-07 16:22:24 -06:00
Brian Paul
77be195cf6
main: replace ALLOC_INSTRUCTION macro with regular function
2009-10-07 16:12:26 -06:00
Brian Paul
6e1697bee7
mesa: rename display list functions
...
_mesa_alloc_instruction() sounded like it was related to vertex/fragment
program instructions, but it wasn't.
2009-10-07 16:03:09 -06:00
Vinson Lee
0083d2e40a
i915g: Fix MSVC build.
2009-10-07 14:29:23 -06:00
Brian Paul
2b9418b278
softpipe: new comments
2009-10-07 13:30:48 -06:00
Brian Paul
0fb71be217
softpipe: whitespace and comment fixes
2009-10-07 13:21:57 -06:00
Brian Paul
9a0ff33ad6
softpipe: prefix non-static functions with sp_
2009-10-07 13:17:20 -06:00
Joakim Sindholt
cf6209b274
r300compiler: fix scons build again
2009-10-07 21:02:18 +02:00
Nicolai Hähnle
7ca7220ea1
Merge branch 'master' into r300g-glsl
...
Conflicts:
src/gallium/drivers/r300/r300_tgsi_to_rc.c
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-10-07 20:45:08 +02:00
Nicolai Hähnle
5b4c0b864a
Merge branch 'mesa_7_6_branch'
2009-10-07 20:39:22 +02:00
Keith Whitwell
3f5a316f36
util: do some more util_blit_pixels cases without temporaries
...
When the source surface is pointing at a 2d texture with only one
mipmap level, use that directly rather than creating a temporary.
Probably want to cover more cases, but this is a start.
2009-10-07 18:15:21 +01:00
Keith Whitwell
c0de2ed505
mesa/st: add missing mesa constant file name
...
There are many different names for constants in mesa, we were missing
one since the ureg rewrite.
2009-10-07 18:15:20 +01:00
Brian Paul
2ef1aae163
st/mesa: pass pipe_screen, not pipe_context to st_choose_format() functions
...
These don't depend on context state, but use a screen pointer.
2009-10-07 09:58:34 -06:00
Michel Dänzer
de81b2cf0a
st/dri: Add missing front buffer case in dri_get_buffers().
...
This seems to help for compiz at least with some drivers.
Also add an assert(0) to catch unhandled cases in the future.
2009-10-07 16:36:39 +02:00
Jakob Bornecrantz
0f0127f6f9
i915g: Use buffer write instead of map for lit vertices
2009-10-07 14:04:48 +01:00
Jakob Bornecrantz
f8ba93aefd
i915g: Change order of buffer_write arguments
...
They now follow the pipe_buffer_write style,
its the gallium driver that sets the interface not
the winsys.
2009-10-07 13:48:32 +01:00
Jakob Bornecrantz
030723fc5d
i915g: Disable vbuf fifo and minor commenting of vbuf code
...
The vbuf fifo doesn't appear to help once the libdrm
reuse flag has been set.
2009-10-07 13:48:32 +01:00
Brian Paul
74d61d03b5
mesa: added MESA_FORMAT_XRGB8888
2009-10-06 22:30:01 -06:00
Younes Manton
aec2c010f6
nv04-nv40: Fix swizzle transfers for NPOT sizes.
...
Workarounds not necessary, SIFM can handle NPOT, we just weren't setting
dst dimensions properly. SIFM can't handle odd w,h though, that still
needs fixing.
2009-10-06 22:11:07 -04:00
Brian Paul
c5b7254892
mesa: added case for MESA_FORMAT_SIGNED_RGBA_16
2009-10-06 19:01:43 -06:00
Brian Paul
c13b9a141d
mesa: added MESA_FORMAT_SIGNED_RGBA_16 for accum buffers
2009-10-06 19:00:09 -06:00
Brian Paul
f7b5e616e0
mesa: added _mesa_get_format_color_encoding()
2009-10-06 18:56:29 -06:00
Brian Paul
edfd2f7c4f
mesa: accept more pnames in _mesa_get_format_bits()
2009-10-06 18:54:13 -06:00
Vinson Lee
9c778a90ea
progs/tests: fix MSVC build.
2009-10-06 16:02:47 -06:00
Nicolai Hähnle
57abb76e10
r300/compiler: Fix R300 vertex program dumps
...
The source register field has 8 bits.
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-10-06 21:24:44 +02:00
Nicolai Hähnle
bcfba138cc
r300/compiler: Fix yet another regression in register allocation
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-10-06 21:13:27 +02:00
Nicolai Hähnle
a09bd685da
r300/compiler: Fix a really stupid logic inversion in the generic dataflow code
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-10-06 20:25:07 +02:00
Nicolai Hähnle
9e42f0ebc7
r300/compiler: Fix regression in pair scheduling
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-10-06 20:08:32 +02:00
Vinson Lee
017fae04ec
progs/perf: Fix MSVC build.
2009-10-06 09:13:14 -06:00
Andre Maasikas
ec58dac86d
r600: r700PredictRenderSize can flush, so move index buffer setup after it
2009-10-06 16:17:03 +03:00
Ben Skeggs
340436d8d2
nv50: fix segfault when there's gaps in enabled texture units
...
Tested with progs/demos/multiarb.
2009-10-06 13:57:51 +10:00
Ben Skeggs
4911443d36
nouveau: fix buffer object leak
...
Very apparent with resizing windows on DRI2.
2009-10-06 13:31:43 +10:00
Jakob Bornecrantz
db8b363eb9
i915g: Add more defines to tweek batchbuffer
2009-10-06 03:09:16 +01:00
Jakob Bornecrantz
ce3c2b51a2
i915g: Tweek vertexbuffer size
2009-10-06 03:09:01 +01:00
Brian Paul
3e34a2a2b9
drivers: don't include texformat.h
...
And remove other unneeded #includes while we're at it.
2009-10-05 18:11:37 -06:00
Brian Paul
90cd968300
mesa: don't include texformat.h
2009-10-05 17:56:31 -06:00
Brian Paul
019bc97bd9
mesa: move _mesa_format_to_type_and_comps() to formats.c
2009-10-05 17:54:20 -06:00
Brian Paul
be0765cd6e
mesa: move gl_format_info struct to formats.c
...
This is a private datatype.
2009-10-05 17:50:36 -06:00
Brian Paul
7e7f38a67d
mesa: remove feature tests
2009-10-05 17:48:22 -06:00
Brian Paul
6ec3db6cab
mesa: use FetchTexelf() instead of FetchTexelc()
2009-10-05 17:28:39 -06:00
Brian Paul
41bee4cff5
mesa: add parenthesis
2009-10-05 17:27:50 -06:00
Brian Paul
1a2bb37264
mesa: lift _mesa_set_fetch_functions() calls out of drivers
...
Call it from in the main Mesa glTexImage functions.
2009-10-05 17:12:40 -06:00
Brian Paul
bbbf55fa84
mesa: make _mesa_get_texel_fetch_func() static
2009-10-05 16:52:26 -06:00
Brian Paul
722ae91722
i965g: remove 965/brw files from XLIB_WINSYS_SOURCES
2009-10-05 14:43:38 -06:00
Brian Paul
55770d09c1
Merge branch 'mesa_7_6_branch'
...
Conflicts:
src/gallium/auxiliary/util/u_cpu_detect.c
2009-10-05 14:42:08 -06:00
Jakob Bornecrantz
f00da2a3ff
i915g: Drop the simple sufix
...
None of the other driver have a silly sufix,
so just drop it. Nothing new added in this commit
or any other commit but this is better marketing.
2009-10-05 19:48:08 +01:00
Jakob Bornecrantz
c4b821a4c6
i965g: Drop i965simple
...
The driver never work with real hardware and has
bitrotted for quite some time now, might as well
drop it. If somebody wants to look at it just use git.
2009-10-05 19:48:03 +01:00
Joakim Sindholt
1f39d59a29
r300g: fix scons build
...
So I didn't touch r300compiler, but r300g now compiles after having
declarations and code untangled. As nha so gently points out, we shouldn't
have to do this just to comply with MSVC compilers.
2009-10-05 19:25:04 +02:00
José Fonseca
6971be783b
util: Improve the cpuid assembly.
...
No need to save ebx on 64bit. Use just xchgl. Refer to gcc's cpuid.h header.
Thanks to Uros Bizjak for pointing this out.
2009-10-05 16:49:21 +01:00
José Fonseca
75e0a376cd
mesa: Copy textures' base format into wrapper renderbuffer.
...
Otherwise st_copy_texsubimage will fallback to software blit due to
inconsistent base formats.
2009-10-05 16:49:21 +01:00
Keith Whitwell
b02ef740b9
mesa/st: add ST_DEBUG environment variable
...
At last it's possible to turn on tgsi dumps and other debugging in the
state tracker without modifying sources...
2009-10-05 15:51:55 +01:00
Keith Whitwell
6a085184eb
util: add lost code to util_make_fragment_tex_shader_writemask()
...
This got ported to ureg at some point, but lost the code that
distinguishes it from regular util_make_fragment_tex_shader().
2009-10-05 15:51:55 +01:00
Andre Maasikas
0b032eabc7
r600: update vertex program selection for draw path
2009-10-05 13:38:53 +03:00
Ben Skeggs
d47de50540
st/dri: avoid segfault if we can't get a pixmap's buffers
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com >
2009-10-05 15:52:33 +10:00
Ben Skeggs
7bfc3172e8
nv50: support PIPE_FORMAT_X8R8G8B8_UNORM
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com >
2009-10-05 15:36:06 +10:00
Ben Skeggs
5313f1be11
nouveau: return pitch value from local_handle_from_texture()
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com >
2009-10-05 15:36:02 +10:00
Ben Skeggs
7aeaca33c3
mesa: fix return value when clipping {Read,Draw}Pixels height <= 0
...
Signed-off-by: Ben Skeggs <bskeggs@redhat.com >
2009-10-05 15:35:40 +10:00
Ben Skeggs
1336989ec6
st/dri: no need to request fake front buffer, only handle it being returned
...
The previous behaviour was incorrect, and resulted in EXT_tfp being broken
for DDX drivers that implement the correct behaviour (intel/radeon/nouveau).
In the cases where a fake front buffer is required, the X server will
return one when requesting __DRI_BUFFER_FRONT_LEFT.
The Xorg state tracker (aka modesetting_drv) is likely broken now until
it's modified to match the other drivers.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com >
2009-10-05 15:32:55 +10:00
José Fonseca
7a2271c659
util: Make assert a no-op on non-debug builds.
...
This ensures that an assertion like
assert(expensive_test());
won't have any penalty on release builds. It also implies that no vital
code should be in assert expressions.
2009-10-04 22:03:16 +01:00
José Fonseca
77ef705058
llvmpipe: Ensure tile cache transfers are mapped before flushing it.
2009-10-04 22:03:16 +01:00
José Fonseca
589ec337f0
llvmpipe: Autogenerate lp_tile_soa.c from u_format.csv.
...
This is just a temporary change until we code generate the tile read/write
functions in runtime. The new code avoids an extra memcpy that exists in
u_tile.c functions, from which lp_tile_soa.c was originally based.
This achieves up to 5% improvement, particularly in frames with
little geometry overlap.
2009-10-04 22:03:16 +01:00
José Fonseca
7a7dfb09aa
util: Fix cpuid invocation for x86_64.
2009-10-04 22:03:15 +01:00
José Fonseca
eb2e41f0c6
llvmpipe: Remove loop testing from format testing.
...
Loop building will be rewritten.
2009-10-04 22:03:15 +01:00
José Fonseca
10981c0a76
llvmpipe: Match header's protection macro with filename.
2009-10-04 22:03:15 +01:00
José Fonseca
cd0a396813
llvmpipe: Adjust format assertion.
...
We support array layout too -- if it has a single channel.
2009-10-04 22:03:15 +01:00
Nicolai Hähnle
a6b300ac98
r300/compiler Add support for more of the Sxx set instructions
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-10-04 18:31:18 +02:00
Nicolai Hähnle
12e89e0e51
r300/compiler: Emit flow control instructions and ALU result writes on R500
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-10-04 18:30:52 +02:00
Corbin Simpson
2a929a08ab
r300g: xRGB and RGBx formats.
...
We now have 48 GLX visuals. Pretty soon, we'll have 90+ visuals,
only five of which ever get tested. :3
2009-10-04 09:30:30 -07:00
Nicolai Hähnle
a30560e6f0
r300/compiler: Refactor the radeon_pair code to support control flow instructions
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-10-04 16:50:07 +02:00
Nicolai Hähnle
995135479d
r300/compiler: Refactor to allow different instruction types
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-10-04 11:41:03 +02:00
Nicolai Hähnle
e6b137dcce
r300/compiler: Introduce aluresult register for branch operation support
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-10-04 11:13:13 +02:00
Chris Wilson
f194d2737b
intel: Suppress a compiler warning for an pointer->int cast
...
intel_pixel_read.c: In function ‘do_blit_readpixels’:
intel_pixel_read.c:221: warning: cast from pointer to integer of
different size
Cast via an intermediate (GLintptr) instead and hope the result fits
within GLuint... [It should as we simply do not support textures *that*
large!]
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk >
2009-10-03 23:08:39 +01:00
Chris Wilson
470ec8d42e
intel: Assert that relocation offsets are within the target
...
This should catch the common programming error where we attempt to
emit a relocation to beyond the end of the target buffer.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk >
2009-10-03 23:06:39 +01:00
Nicolai Hähnle
b7cf887ca7
r300/compiler: Introduce control flow instructions and refactor dataflow
...
Note that control flow instruction support isn't actually fully functional yet.
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-10-03 23:37:16 +02:00
José Fonseca
cbb57bf726
llvmpipe: Fetch tile only if a color buffer is bound.
2009-10-03 19:42:22 +01:00
Nicolai Hähnle
6d25b9125e
Merge branch 'master' into r300-compiler
2009-10-03 19:30:48 +02:00
Nicolai Hähnle
7d2699aedc
prog_parameter: Document the fact that Size may be > 4
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-10-03 19:30:05 +02:00
Nicolai Hähnle
81e5188f66
r300g: Do not abort on fragment program compiler error
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-10-03 19:29:48 +02:00
Nicolai Hähnle
59b20b760d
r300g: Fix memory leak in radeon_texture_from_shared_handle
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-10-03 18:07:34 +02:00
Sedat Dilek
aa6aa77a1b
r300g: Build in the trace and softpipe driver for xorg state tracker
...
Same as in src/gallium/winsys/drm/intel/xorg/Makefile
Thanks MrCooper for explanations on IRC
[ Summary amended by Michel Dänzer to clarify that this is related to the xorg
state tracker ]
2009-10-03 18:01:58 +02:00
Michel Dänzer
b330cebe01
radeon: Cope better with texture images with no miptrees.
...
Fixes crash with compiz magnifier plugin.
2009-10-03 18:01:58 +02:00
Michel Dänzer
f741c1eed4
swrast: Move up state validation in _swrast_ReadPixels.
...
This ensures the driver won't map the wrong set of textures.
2009-10-03 18:01:58 +02:00
Michel Dänzer
4a6759b778
meta: Make sure texImage->TexFormat is valid for CopyTex(Sub)Image.
2009-10-03 18:01:57 +02:00
Nicolai Hähnle
26df8af4fe
r300g: Remove an unnecessarily created pipe buffer (and thus fix a leak)
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-10-03 17:51:09 +02:00
Nicolai Hähnle
fce2095a90
st/dri: Install APPLE_vertex_array_object functions
...
Besides from being necessary to use that extension, it also fixes a crash
when deleting the currently bound vertex array object.
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-10-03 17:42:50 +02:00
Nicolai Hähnle
751aa58e01
r300g: Reset vbo_offset after allocation of a new buffer
...
This fixes the glxgears bug, among other things.
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-10-03 17:27:50 +02:00
Nicolai Hähnle
ebbd65eb06
st/dri: Install ARB_vertex_array_object functions
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-10-03 11:45:19 +02:00
Brian Paul
be16acaafa
mesa: optimized _mesa_meta_BlitFramebuffer() for src=texture case
...
If the src renderbuffer is actually a texture, we can directly use that
texture as the src and avoid a copy.
2009-10-02 14:00:02 -06:00
Eric Anholt
4182b58169
i965: Use a little stack space to avoid a malloc in wm_get_binding_table.
2009-10-02 11:42:19 -07:00
Eric Anholt
6d0fc3cfde
mesa: Remove another unexplained Flush call, this time from BindFramebuffer.
...
Combined with the previous fix, it takes cairo-gl firefox-talos-gfx time
from 120 seconds to 90 seconds on my GM45.
2009-10-02 11:42:07 -07:00
Eric Anholt
f019577f0c
Revert "Flush driver, not just tnl module."
...
This reverts commit df058298e1
. It didn't
explain why it was required, doesnt appear to be required, and is a
significant performance penalty for cairo-gl firefox.
Conflicts:
src/mesa/main/fbobject.c
2009-10-02 11:41:29 -07:00
Eric Anholt
3d78a86cd7
intel: Remove an unexplained flush from intelClearWithBlit.
2009-10-02 11:38:36 -07:00
Alex Deucher
3f623cfffe
r600: remove support for host-based ibs
...
no longer used now that the hw supports this natively.
Also, clean up some formatting.
2009-10-02 14:34:28 -04:00
Keith Whitwell
918199fb0f
mesa/st: don't reuse vertex buffers for bitmap, clear quads
...
Currently using max_slots > 1 will cause synchronous rendering
if the driver flushes its command buffers between one bitmap and the
next.
Need to improve buffer_write to allow NO_WAIT (as well as no_flush)
updates to buffers where we know there is no conflict with previous
data.
2009-10-02 19:03:15 +01:00
Michel Dänzer
316b4ddcf7
st/xorg: Use PIPE_TRANSFER_MAP_DIRECTLY flag in EXA PrepareAccess hook.
...
Propagate NULL return value.
This also allows removing the DRM_MODE_FEATURE_DIRTYFB specific pixmap
management hacks.
2009-10-02 18:13:26 +02:00
Michel Dänzer
9db647bb7a
gallium: Add PIPE_TRANSFER_MAP_DIRECTLY usage flag.
...
Asks the driver to map the texture storage directly or return NULL if that's
not possible.
2009-10-02 18:13:26 +02:00
Michel Dänzer
47e41b024e
gallium: Preparations for adding more PIPE_TRANSFER_* usage flags.
...
Always test for PIPE_TRANSFER_READ/WRITE using the bit-wise and operator, and
add a pipe_transfer_buffer_flags() helper for getting the buffer usage flags
corresponding to them.
2009-10-02 18:13:26 +02:00
Brian Paul
7d4b348c67
intel: wrap _mesa_meta_GenerateMipmap()
...
Need to check if we'll take the software path so which requires mapping the
src texture image.
Fixes crash in piglit gen-compressed-teximage, bug 24219. However, the
test still does not pass (it may never have).
2009-10-02 09:03:27 -06:00
Brian Paul
f1cab802b8
mesa: added _mesa_meta_check_generate_mipmap_fallback()
2009-10-02 09:03:27 -06:00
Brian Paul
32aa40eee4
mesa: removed gl_texture_image::CompressedSize field
...
Just call ctx->Driver.CompressedTextureSize() when we need to get
the compressed image size.
2009-10-01 21:13:34 -06:00
Younes Manton
f9f7646fe6
g3dvl: Formatting.
2009-10-01 22:57:39 -04:00
Younes Manton
577f12fbba
g3dvl: Delete state_trackers/g3dvl, other unused files.
2009-10-01 22:57:39 -04:00
Younes Manton
fcb595c04f
g3dvl: Copyright blocks.
2009-10-01 22:53:00 -04:00
Younes Manton
62db9b21da
st/xvmc: Set default CSC matrix to BT.601, no ProcAmp, full range RGB.
2009-10-01 22:52:59 -04:00
Younes Manton
e00da1476f
g3dvl: Color space conv interface & vl impl.
...
Interface is pipe_video_context::set_csc_matrix().
vl_csc.h defines some helpers to generate CSC matrices based on one of
the color standard and a user defined ProcAmp (brightness, contrast,
saturation, hue).
2009-10-01 22:52:59 -04:00
Brian Paul
8c92a531fb
mesa: reformatting
2009-10-01 19:01:02 -06:00
Brian Paul
bb659f6e53
progs/tests: additional debug code
2009-10-01 16:43:22 -06:00
Brian Paul
4ca9ba2544
mesa: move mesa_set_fetch_functions()
2009-10-01 16:42:37 -06:00
Brian Paul
073d55f584
radeon: fix tx_table[] entry
...
XXX need to still verify that the table entries are in correct order.
2009-10-01 16:41:52 -06:00
Brian Paul
4208a8c026
savage: s/Xfree/_mesa_free/
2009-10-01 16:41:24 -06:00
Brian Paul
354d66e2f5
mesa: simplify _mesa_compressed_texture_size()
2009-10-01 16:30:47 -06:00
Brian Paul
b6bdafdf2c
mesa: remove gl_texture_image::IsCompressed field
...
Use _mesa_is_format_compressed() instead.
2009-10-01 16:29:44 -06:00
Brian Paul
040fd7ed44
mesa: added _mesa_format_row_stride()
2009-10-01 16:27:23 -06:00
Brian Paul
1c7ec97ec4
mesa: added _mesa_format_image_size()
2009-10-01 15:59:13 -06:00
Eric Anholt
81aa5d717b
i915: Add stub ARB_occlusion_query support under a driconf debug option.
...
This is useful for enabling our GLSL testcases using the 2.0 entrypoints
even though we don't have full GL 2.0.
2009-10-01 14:54:15 -07:00
Eric Anholt
862a2a55b3
i915: Add optional support for ARB_fragment_shader under a driconf option.
...
Other vendors have enabled ARB_fragment_shader as part of OpenGL 2.0
enablement even on hardware like the 915 with no dynamic branching or
dFdx/dFdy support. But for now we'll leave it disabled because we don't
do any flattening of ifs or loops, which is rather restrictive.
This support is not complete, and may be unstable depending on your shaders.
It passes 10/15 of the piglit glsl tests, but hangs on glean glsl1.
2009-10-01 14:52:44 -07:00
Eric Anholt
67f4d626d3
i915: Add support or fallbacks for GLSL fragment shader opcodes.
2009-10-01 14:31:04 -07:00
Eric Anholt
f9f31b2574
i915: Add support for varying inputs.
2009-10-01 14:31:04 -07:00
Eric Anholt
7d4b7460b0
i915: Enable ARB_vertex_shader for both i915 and i830.
...
Since the TNL is all done in software anyway, it should be the same to
the user who's probably using ARB_vertex_program otherwise, but gives them
a nicer programming environment.
2009-10-01 14:31:03 -07:00
Eric Anholt
96a3c69d48
i915: Increase maximum program size to the hardware limits.
...
This fixes potential heap trashing if the program of choice exceeds limits,
and fixes the native instructions limit being lower than what can be
used by valid programs.
2009-10-01 14:31:03 -07:00
Eric Anholt
61b512c47c
i915: Update and translate the fragment program along with state updates.
...
Previously, we were doing it in the midst of the pipeline run, which gave
an opportunity to enable/disable fallbacks, which is certainly the wrong
time to be doing so. This manifested itself in a NULL dereference for PutRow
after transitioning out of a fallback during a run_pipeline in glean glsl1.
2009-10-01 14:31:03 -07:00
Eric Anholt
d6fbf87575
Revert "i915: don't validate PS program when falling back to software"
...
This reverts commit e7044d552c
. It
prevented the driver from ever recovering from a software fallback due
to a program error. The original bug it claimed to fix doesn't appear to
exist post-revert.
2009-10-01 14:31:03 -07:00
Eric Anholt
4ff816751f
i915: Bail when the fragment program has too many total instructions.
...
Previously, we'd go trashing the heap.
2009-10-01 14:31:03 -07:00
Eric Anholt
994d1db079
i915: Let i915_program_error take a format string, and don't use _mesa_problem.
...
It's misleading to report things like the program having too many native
instructions as a Mesa implementation error, when the program may just be
too big for the hardware.
2009-10-01 14:31:03 -07:00
Brian Paul
5d2413fca4
Merge branch 'mesa_7_6_branch'
2009-10-01 13:35:42 -06:00
Brian Paul
15c57648cd
objviewer: remove disabled code
2009-10-01 13:14:50 -06:00
Brian Paul
9745e26adb
objviewer: mouse/keyboard info in README file
2009-10-01 13:14:50 -06:00
Brian Paul
d622c4ddba
docs: added objviewer to release notes
2009-10-01 13:14:50 -06:00
Brian Paul
24f31ab861
mesa: add objviewer to PROGRAM_DIRS
2009-10-01 13:14:50 -06:00
Brian Paul
0b1de63ad8
mesa: add progs/objviewer to tarball list
2009-10-01 13:14:50 -06:00
Brian Paul
8d93a4c639
objview: clean up drawing VBO code
2009-10-01 13:14:50 -06:00
Brian Paul
c7c62521fb
objview: set skybox texture filter
2009-10-01 13:14:50 -06:00
Brian Paul
336994e54c
objview: check GL version/extension
2009-10-01 13:14:49 -06:00
Brian Paul
ca1bda552d
progs/objviewer: Wavefront .obj file loader/viewer demo
...
Adapted from code written by Nate Robins. See README.txt.
2009-10-01 13:14:48 -06:00
Michel Dänzer
e32a341be6
st/xorg: Check that ms->api->destroy is not NULL before calling it.
...
Fixes potential crash on X server shutdown.
2009-10-01 16:45:11 +02:00
Robert Noland
0b466c8705
util: Enable sockets on BSD
...
I think this should be safe for all of the BSDs.
Signed-off-by: Robert Noland <rnoland@2hip.net >
Signed-off-by: Brian Paul <brianp@vmware.com >
2009-10-01 08:42:48 -06:00
Robert Noland
908ecb3faa
util: define PIPE_OS_FREEBSD to correct u_cpu_detect on FreeBSD.
...
Since the various BSDs use some different features here,
define PIPE_OS_OPENBSD and PIPE_OS_NETBSD as well
Signed-off-by: Robert Noland <rnoland@2hip.net >
2009-10-01 08:40:30 -06:00
Brian Paul
f8d8f45278
mesa: better debug message
2009-10-01 08:38:38 -06:00
Keith Whitwell
4456006ba6
gallium: remove depth.occlusion_count flag
...
This was redundant as drivers can just keep track of whether they are
inside a begin/end query pair. We want to add more query types later
and also support nested queries, none of which map well onto a flag like
this. No driver appeared to be using the flag.
2009-10-01 14:34:23 +01:00
Cooper Yuan
ae2daacbac
st/mesa: fix non-mipmap lastLevel calculation.
...
reviewed by Brian Paul.
2009-10-01 17:54:27 +08:00
Brian Paul
8c36ca707c
swrast: fix some texformat regressions
...
Need to be careful with component ordering for MESA_FORMAT_RGB888
and MESA_FORMAT_RGBA8888.
2009-09-30 22:50:08 -06:00
Brian Paul
3d6a20e5b6
mesa: rename texformat_tmp.h to texfetch_tmp.h
2009-09-30 21:08:06 -06:00
Brian Paul
60843e3ee5
mesa: remove MESA_FORMAT_RGBA4444
...
Not used by any hardware driver. ARGB4444 and ARGB4444_REV remain.
2009-09-30 21:04:17 -06:00
Brian Paul
3fa7dbf368
mesa: remove GLchan-based formats; use hw 8-bit/channel formats instead
...
Removed: MESA_FORMAT_RGBA, RGB, ALPHA, LUMINANCE, LUMINANCE_ALPHA, INTENSITY.
2009-09-30 21:00:16 -06:00
Brian Paul
74ae14a2bd
mesa: move texel fetch/store into new texfetch.[ch] files
2009-09-30 20:47:54 -06:00
Brian Paul
884d1abb2a
st/mesa: update comment
2009-09-30 20:36:25 -06:00
Brian Paul
bdc761b0f9
mesa: remove gl_texture_format
2009-09-30 20:35:32 -06:00
Brian Paul
1f7c914ad0
mesa: replace gl_texture_format with gl_format
...
Now gl_texture_image::TexFormat is a simple MESA_FORMAT_x enum.
ctx->Driver.ChooseTexture format also returns a MESA_FORMAT_x.
gl_texture_format will go away next.
2009-09-30 20:28:45 -06:00
Michel Dänzer
81a62edc08
st/xorg: Fix debug option function call typo.
2009-09-30 18:01:46 +02:00
Chia-I Wu
cef97267d6
mesa/main: New feature FEATURE_beginend.
...
This feature corresponds to the Begin/End paradigm. Disabling this
feature also eliminates the use of GLvertexformat completely.
2009-09-30 08:31:56 -06:00
Chia-I Wu
a73ba2d31b
mesa/main: Make FEATURE_dlist follow feature conventions.
...
As shown in mfeatures.h, this allows users of dlist.h to work without
knowing if the feature is available.
2009-09-30 08:31:56 -06:00
Chia-I Wu
aefa1f6ab1
mesa/main: Make FEATURE_evaluators follow feature conventions.
...
As shown in mfeatures.h, this allows users of eval.h to work without
knowing if the feature is available.
2009-09-30 08:31:55 -06:00
Chia-I Wu
42fac11d43
mesa/main: New feature FEATURE_queryobj.
...
It merges FEATURE_ARB_occlusion_query and FEATURE_EXT_timer_query, and
follows the feature conventions.
2009-09-30 08:31:55 -06:00
Chia-I Wu
80630d1fed
mesa/main: New feature FEATURE_arrayelt.
...
This allows the removal of AEcontext.
2009-09-30 08:31:55 -06:00
Chia-I Wu
cc95de82e5
mesa/main: Make FEATURE_texgen follow feature conventions.
...
As shown in mfeatures.h, this allows users of texgen.h to work without
knowing if the feature is available.
2009-09-30 08:31:55 -06:00
Chia-I Wu
301a510092
mesa/main: Make FEATURE_feedback follow feature conventions.
...
As shown in mfeatures.h, this allows users of feedback.h to work without
knowing if the feature is available.
2009-09-30 08:31:55 -06:00
Chia-I Wu
67a2a4e901
mesa/main: Make FEATURE_drawpix follow feature conventions.
...
As shown in mfeatures.h, this allows users of drawpix.h to work
without knowing if the feature is available.
2009-09-30 08:31:55 -06:00
Chia-I Wu
d25080074f
mesa/main: New feature FEATURE_rastpos.
...
It is separated from FEATURE_drawpix and made to follow the feature
conventions.
2009-09-30 08:31:55 -06:00
Chia-I Wu
cab7ea0368
mesa/main: Make FEATURE_histogram follow feature conventions.
...
As shown in mfeatures.h, this allows users of histogram.h to work without
knowing if the feature is available.
2009-09-30 08:31:55 -06:00
Chia-I Wu
2b36db496d
mesa/main: Make FEATURE_attrib_stack follow feature conventions.
...
As shown in mfeatures.h, this allows users of attrib.h to work without
knowing if the feature is available.
2009-09-30 08:31:55 -06:00
Chia-I Wu
a833ff0f53
mesa/main: Make FEATURE_accum follow feature conventions.
...
As shown in mfeatures.h, this allows users of accum.h to work without
knowing if the feature is available.
2009-09-30 08:31:55 -06:00
Chia-I Wu
e82b02c7e8
progs/egl: Make demo3 work again.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-09-30 08:15:30 -06:00
Chia-I Wu
28c2190336
progs/egl: Check EGL_MESA_screen_surface is supported in demo2.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-09-30 08:15:30 -06:00
Chia-I Wu
e0b2848f4f
progs/egl: Fix a crash in demo1.
...
The variable "configs" in main() is used without initialization.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-09-30 08:15:30 -06:00
Chia-I Wu
4b95481e95
st/egl: Fix a double free in drm_destroy_context.
...
st_destroy_context has destroyed the pipe context for us.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-09-30 08:15:30 -06:00
Chia-I Wu
dd81cc885c
st/egl: Fix a crash when unbinding current context.
...
This fixes a NULL-pointer dereference when
eglMakeCurrent(dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT)
is called.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-09-30 08:15:30 -06:00
Chia-I Wu
fa8df0c40d
progs/egl: Replace EGL_i915 by EGL_DEFAULT_DISPLAY.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-09-30 08:15:30 -06:00
Brian Paul
cb0de06301
mesa: added nopfrag/nopvert options for MESA_GLSL
...
These options can be used to force vertex/fragment shaders to be no-op
shaders (actually, simple pass-through shaders). For debug/test purposes.
2009-09-29 10:38:02 -06:00
Brian Paul
c7aee65bb9
mesa: added _mesa_nop_vertex/fragment_program()
...
For debug/test purposes.
2009-09-29 10:38:02 -06:00
José Fonseca
baddcbc522
llvmpipe: Workaround for bug in llvm 2.5.
...
The combination of fptosi
and sitofp (necessary for trunc/floor/ceil/round implementation)
somehow becomes invalid code.
Skip the instruction combining pass when SSE4.1 is not available.
2009-09-29 17:28:15 +01:00
José Fonseca
a02ecdf8c2
llvmpipe: First verify LLVM IR, only then run optimizing passes.
2009-09-29 17:28:15 +01:00
José Fonseca
754f48871c
llvmpipe: Runtime cpu checks for lp_build_min_simple too.
2009-09-29 17:28:15 +01:00
José Fonseca
741c40a232
llvmpipe: Implement non SSE4.1 versions of floor and round.
2009-09-29 17:28:15 +01:00
Brian Paul
124f5875ea
Merge branch 'mesa_7_6_branch'
...
Conflicts:
Makefile
configs/default
docs/relnotes.html
src/gallium/drivers/softpipe/sp_context.c
src/gallium/drivers/softpipe/sp_tile_cache.c
src/mesa/main/version.h
2009-09-29 09:46:49 -06:00
Chia-I Wu
170bd0c882
egl_xdri: Report full list of supported configs.
...
Call _eglConfigFromContextModesRec to convert __GLcontextModes to
_EGLConfig. Single-buffered configs are no longer skipped.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-09-29 08:10:48 -06:00
Chia-I Wu
d845f2754b
egl: Add support for querying render buffer.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-09-29 08:10:48 -06:00
Chia-I Wu
55893b9439
egl: Add a function to convert __GLcontextModes to _EGLConfig.
...
_eglConfigFromContextModesRec is used to convert a __GLcontextModes to a
_EGLConfig. Note that the config is not validated. An invalid mode
is likely to give an invalid config.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-09-29 08:10:47 -06:00
Chia-I Wu
56822b0812
egl: Rework config lookup.
...
Make it similiar to how contexts and surfaces are looked up. It should
be slightly faster, and work better with multiple displays.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-09-29 08:10:47 -06:00
Chia-I Wu
95cdd697e7
egl: Rework configuration management.
...
This mainly implements the algorithms for configuration selection and
sorting, described in the spec. User errors should also be correctly
detected and reported.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-09-29 08:10:47 -06:00
Chia-I Wu
358c5a8fd1
egl: Introduce config keys.
...
Config keys are almost config attributes. A valid config attribute is a
valid config key, but a valid config key may not be a valid config
attribute.
This commit does not distinguish the differences.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-09-29 08:10:47 -06:00
José Fonseca
7cda8ea44c
llvmpipe: Emit SSE intrinsics based on runtime cpu capability check.
...
Note that llvmpipe still doesn't run on any processor yet: if you don't
have a recent processor with SSE4.1 you will still likely end up
hitting a code path for which a generic non-sse4 version is not
implemented yet.
2009-09-29 13:59:16 +01:00
José Fonseca
a81fb2a0d2
util: Cleanup u_cpu_detect, build. Support X86_64 and detect SSE4.1 too.
...
I was waiting for the need to use this code to arise, and it finally came.
I've tested building this on Linux and Windows, both x86 and x64_64. But
it might break other platforms. Please bear with me and help me fix it.
Many thanks to Dennis Smit who submitted this, and Eric Anholt whose
work this was based on.
2009-09-29 13:59:16 +01:00
José Fonseca
8210abb113
gallium: New PIPE_OS_UNIX to simplify code that is portable to all unices.
2009-09-29 13:59:16 +01:00
Vinson Lee
60f3f22a52
i915: Fix MSVC build.
2009-09-29 11:10:42 +01:00
José Fonseca
57d0fcba67
python: Update for surface_buffer_create change.
2009-09-29 11:09:55 +01:00
José Fonseca
bd2e36a38f
g3dvl: assert.h -> util/u_debug.h
2009-09-29 11:09:55 +01:00
José Fonseca
7db33440a8
g3dvl: Define PIPE_VIDEO_CODEC_UNKNOWN for failures.
...
gcc 4.4 seems particularly picky with int -> enum conversions.
2009-09-29 11:09:55 +01:00
Andre Maasikas
ac9c8b6359
r600: use CB_TARGET_MASK instead of CB_SHADER_MASK for setting color mask
...
makes blend functions work better
Signed-off-by: Dave Airlie <airlied@linux.ie >
2009-09-29 19:24:35 +10:00
Andre Maasikas
7c5f3c3d8a
r600: user correct alpha blend factor
...
Signed-off-by: Dave Airlie <airlied@linux.ie >
2009-09-29 19:24:34 +10:00
Andre Maasikas
a230ad2bc4
r600: clear position enable bit when when wpos is not used by FP
...
Makes doom3 alot nicer..
2009-09-29 16:02:00 +08:00
Jakob Bornecrantz
3a8d525373
st/xorg: Add debug for fallbacks
2009-09-28 21:34:45 -07:00
Jakob Bornecrantz
e226bf8a5d
st/xorg: Make debug printing optional
2009-09-28 21:26:13 -07:00
Brian Paul
e2e7bd6c1f
mesa: move StoreTexImageFunc typedef to .c file
2009-09-28 21:55:47 -06:00
Brian Paul
0a306daf71
mesa: use _mesa_texstore()
2009-09-28 21:52:43 -06:00
Brian Paul
6480210b89
st/mesa: use _mesa_texstore()
2009-09-28 21:52:23 -06:00
Brian Paul
49263e0856
mesa: make individual texstore functions static
2009-09-28 21:49:38 -06:00
Brian Paul
cb0ef0cbf8
glide: use _mesa_texstore()
2009-09-28 21:49:10 -06:00
Brian Paul
b436d729d1
drivers: use _mesa_texstore
2009-09-28 21:46:34 -06:00
Brian Paul
0b1f4dc0fa
drivers: use new _mesa_texstore() function
2009-09-28 21:41:11 -06:00
Brian Paul
660ca9c5a2
mesa: new _mesa_texstore() function
2009-09-28 21:40:50 -06:00
Eric Anholt
d492e7b017
meta: Fix invalid PBO access from DrawPixels when trying to just alloc.
...
This whole reuse of buffers (TexSubImage instead of TexImage, SubData
instead of Data) is bad for hardware drivers, but it's even worse when
we accidentally try to access the 2x2 PBO to fill the new 16x16 texture
we're creating, producing GL errors.
Fixes piglit pbo-drawpixels. Bug #14163 .
2009-09-28 14:12:15 -07:00
Eric Anholt
e885cb48a0
intel: Drop my generatemipmap code in favor of the new shared code.
2009-09-28 14:12:15 -07:00
Eric Anholt
8b23755ce9
intel: Remove some dead metaops code.
2009-09-28 14:12:09 -07:00
Ian Romanick
41865d991f
Merge branch 'mesa_7_6_branch'
...
Conflicts:
Makefile
src/mesa/main/version.h
2009-09-28 12:03:23 -07:00
Brian Paul
05bad193f5
st/mesa: check gl_texture_object::GenerateMipmap field when allocating texmem
...
In guess_and_alloc_texture() use the gl_texture_object::GenerateMipmap
field as another hint as to whether to allocate space for a whole mipmap.
2009-09-28 10:03:58 -06:00
Brian Paul
8fda97afb8
Merge branch 'mesa_7_6_branch'
2009-09-28 10:02:20 -06:00
Brian Paul
eb82373abb
mesa: use _mesa_get_current_tex_unit() helper
2009-09-28 09:22:33 -06:00
Vinson Lee
6920a355c1
progs/perf: Include local headers before installed headers.
...
Fixes compilation errors on platforms with older installed GL headers.
2009-09-28 09:03:26 -06:00
Brian Paul
653ae04bea
progs/tests: print usage info upon SPACE/u
2009-09-28 08:44:43 -06:00
Brian Paul
c8de476189
progs/tests: re-indent mipmap_limits.c
2009-09-28 08:44:43 -06:00
Younes Manton
9871521b30
llvmpipe: Grab a ref when the fb is set.
...
Based on softpipe commit a77226071f
.
2009-09-28 15:35:29 +01:00
José Fonseca
5687053480
softpipe: Fix MSVC build.
2009-09-28 13:03:03 +01:00
José Fonseca
22658c1650
g3dvl: Fix MSVC build.
...
pipe/p_compiler for integer types. No declarations out of scope.
2009-09-28 13:02:42 +01:00
Cooper Yuan
99e1745af9
r300g: fix r300g cause GPU hang issue.
...
why there are two input position semantic tags is that ureg doesn't
set vs input semantic due to commit: 6d8dbd3d1e
so use vs input index instead of semantic name.
2009-09-28 17:55:38 +08:00
Younes Manton
70c44073ad
xvmc: Fail on unsupported formats, operations.
2009-09-28 00:17:33 -04:00
Younes Manton
c0745670d8
g3dvl: Missing semicolon.
2009-09-27 23:54:36 -04:00
Brian Paul
729ff875f4
mesa: change _mesa_format_to_type_and_comps() format parameter type
2009-09-27 21:32:12 -06:00
Brian Paul
bd00a7fa4b
mesa: sort texstore_funcs[] array, remove search loop
2009-09-27 21:22:57 -06:00
Younes Manton
d52d51ab8a
g3dvl: Formatting and cleanups.
2009-09-27 23:14:52 -04:00
Brian Paul
749e50442a
mesa: fix render buffer _BaseFormat assignment
2009-09-27 21:14:43 -06:00
Brian Paul
ef089604a9
mesa: use texture format functions
2009-09-27 21:14:12 -06:00
Brian Paul
4fc344790d
mesa: update comments
2009-09-27 21:13:46 -06:00
Brian Paul
e987ea9d21
mesa: use more mesa format functions
2009-09-27 21:07:57 -06:00
Brian Paul
5767a677a0
mesa: fix GL_TEXTURE_LUMINANCE_SIZE query
2009-09-27 20:59:28 -06:00
Brian Paul
a2b663fe38
mesa: use more mesa format functions
2009-09-27 20:58:05 -06:00
Brian Paul
af0adb5852
mesa: use more mesa format functions
2009-09-27 20:56:04 -06:00
Brian Paul
5cf5d4be21
mesa: use more format helper functions
2009-09-27 20:51:18 -06:00
Brian Paul
5978cbdf77
mesa: code movement
2009-09-27 20:40:53 -06:00
Brian Paul
ddffe4546a
drivers: use more mesa format functions
2009-09-27 20:40:35 -06:00
Brian Paul
9fbb8884f0
mesa/drivers: use _mesa_get_format_bytes()
2009-09-27 20:24:59 -06:00
Brian Paul
e0bc4533eb
mesa/drivers: use _mesa_get_format_bytes()
2009-09-27 20:07:41 -06:00
Brian Paul
b58bc12ed4
via: use mesa texture format helper functions
2009-09-27 19:58:18 -06:00
Younes Manton
97c28bb63a
g3dvl: Move XvMC under the Xorg state tracker.
2009-09-27 21:54:20 -04:00
Brian Paul
21db8959c1
glide: use _mesa_get_format_bytes()
2009-09-27 19:53:54 -06:00
Brian Paul
2de7683280
mesa: use _mesa_get_format_base_format()
2009-09-27 19:51:45 -06:00
Brian Paul
db8aca3a39
mesa: use _mesa_get_format_bytes()
2009-09-27 19:49:51 -06:00
Brian Paul
5ab5f16919
mesa: added _mesa_get_format_datatype()
2009-09-27 19:42:36 -06:00
Brian Paul
b64d478a5b
mesa: use _mesa_get_format_bits()
2009-09-27 19:38:21 -06:00
Brian Paul
c28d78f832
mesa: added _mesa_get_format_bits()
2009-09-27 19:07:44 -06:00
Brian Paul
a608257a02
mesa: remove unused gl_texture_format fields
2009-09-27 18:57:02 -06:00
Brian Paul
e8eed5003b
mesa: added MESA_FORMAT_NONE
2009-09-27 18:53:22 -06:00
Brian Paul
cccdc43fa9
mesa: move StoreTexImageFunc to texstore.h
2009-09-27 18:50:04 -06:00
Brian Paul
27e201e9c4
mesa: rework null texel fetch/store funcs
2009-09-27 18:49:14 -06:00
Brian Paul
05e73cc8e2
mesa: replace function pointer types with void *
...
These fields are no longer used and will be removed soon.
2009-09-27 18:39:52 -06:00
Brian Paul
adce34e23b
st/mesa: use _mesa_get_texstore_func()
2009-09-27 18:39:17 -06:00
Brian Paul
f782f90c45
mesa: use _mesa_get_texstore_func()
2009-09-27 18:38:50 -06:00
Brian Paul
d73cd70316
glide: use _mesa_get_texstore_func()
2009-09-27 18:34:12 -06:00
Brian Paul
9525b92efb
mesa: NULL-out unused texformat field initializers
2009-09-27 18:28:48 -06:00
Brian Paul
f76cbac04a
mesa: use _mesa_get_texstore_func()
2009-09-27 18:28:22 -06:00
Brian Paul
e07862d2c9
st/mesa: use _mesa_get_texstore_func()
2009-09-27 18:27:59 -06:00
Brian Paul
8abb984dc9
mesa: null-out StoreTexImageFunc fields
2009-09-27 18:19:24 -06:00
Younes Manton
e44c85637a
g3dvl: Implement XvMC using pipe_video_context.
2009-09-27 20:18:02 -04:00
Brian Paul
431ba64222
mesa: use _mesa_get_texel_store_func()
2009-09-27 18:17:32 -06:00
Brian Paul
da5722bea6
mesa: use new look-up table to get texel fetch/store funcs
2009-09-27 18:09:23 -06:00
Brian Paul
7116ae857c
mesa: make some s3tc/fxt1 functions public
2009-09-27 18:08:49 -06:00
Brian Paul
6c6896bd25
progs/tests: disable texturing before printing text
2009-09-27 18:02:02 -06:00
Younes Manton
f547472bfa
g3dvl: pipe_video_context interface, softpipe impl, auxiliary libs
2009-09-27 19:49:06 -04:00
Younes Manton
da793b7434
util: Add util_next_power_of_two() for rounding a uint up to a POT.
2009-09-27 19:25:57 -04:00
Brian Paul
0f91e4461f
mesa: minor clean-up in _mesa_texstore_srgb8()
2009-09-27 17:07:22 -06:00
Brian Paul
722b761564
mesa: use _mesa_get_texstore_func() to get texture image store func
2009-09-27 17:01:41 -06:00
Maciej Cencora
540039887a
r300g: fix erroneous condition
2009-09-27 22:44:29 +02:00
Maciej Cencora
98f6bea168
r300g: don't force vertex position for HW TCL path
...
It could be generated by vertex shader.
2009-09-27 22:44:28 +02:00
Maciej Cencora
bedc6b7bdf
r300g: add some assertions
...
Not sure why we are getting a shader with two inputs with position semantic, but we don't know how to handle it correctly so it's better to stop the app than lock the machine.
2009-09-27 22:44:28 +02:00
Maciej Cencora
8c8b77a5f3
r300g: plug memory leak
2009-09-27 22:44:27 +02:00
Maciej Cencora
a6eb593072
r300g: add some debugging info
2009-09-27 22:44:27 +02:00
Dave Airlie
d85fe842b8
r300g: fix r300 rs path
2009-09-28 06:42:25 +10:00
Dave Airlie
b1252c7a34
r300g: rewrite RS state setup.
...
Not 100% sure this is correct, but its more correct than what was here previous
however it may require changes in the input routing for the frag shader.
2009-09-28 06:28:32 +10:00
Dave Airlie
225c3375fd
r300g: silence compiler warning
2009-09-28 06:28:31 +10:00
Jakob Bornecrantz
48c45959ee
i915g: Submit direct vertex buffers
2009-09-27 13:19:49 -07:00
Jakob Bornecrantz
2d71b541d7
i915g: Fix warning
2009-09-27 13:19:49 -07:00
Jakob Bornecrantz
973e9a774a
i915g: Tile shared buffers as well
2009-09-27 13:19:49 -07:00
Jakob Bornecrantz
5aecddc153
i915g: Make sure to map tiled buffers via the gtt
2009-09-27 13:19:49 -07:00
Jakob Bornecrantz
60d72d9e45
i915g: Use boolean
2009-09-27 13:19:48 -07:00
Jakob Bornecrantz
c3663bdc35
i915g: Enable reuse of buffers
2009-09-27 13:19:48 -07:00
Jakob Bornecrantz
dd586078be
st/egl: Remove buffer from screen
...
It is no longer needed since the new drm api code,
and it incorrectly checked if the buffer where there
for testing completeness when it should have checked
the texture instead.
2009-09-27 13:19:48 -07:00
Richard Li
eea30906de
r600 : Enable draw_prim.
2009-09-27 14:47:12 -04:00
Younes Manton
a77226071f
softpipe: Grab a ref when the fb is set.
...
Nasty bug when the surface is freed and another is allocated right on
top of it. The next time we set the fb state SP thinks it's the same
surface and doesn't flush, and when the flush eventually happens the
surface belongs to a completely different texture.
2009-09-27 10:56:42 -04:00
Jakob Bornecrantz
bcca927562
progs/rbug: Link to math
2009-09-26 12:36:01 -07:00
Brian Paul
485105ed18
mesa: move _mesa_get_texstore_func() to texstore.c
2009-09-26 12:32:13 -06:00
Brian Paul
22108bb571
mesa: begin removing dependencies on gl_texture_format in texstore code
2009-09-26 12:26:18 -06:00
Brian Paul
a7455f9fc6
mesa: added formats.c to build
2009-09-26 12:25:02 -06:00
Brian Paul
9e7b56c980
mesa: include formats.h
2009-09-26 12:24:17 -06:00
Brian Paul
813870fd95
mesa: initial check-in of new formats.[ch] files
2009-09-26 12:21:03 -06:00
Dave Airlie
eb5dd947fb
r300g: add tx depth support in register.
...
also enable cube/3d bits in txformat reg
2009-09-26 19:32:46 +10:00
Dave Airlie
9bf85f6b95
r300g: only pass complete texture state to hw setup function
...
No point passing things twice here, also allows more state
to be setup properly.
2009-09-26 18:39:54 +10:00
Dave Airlie
ec9c02187e
r300g: add missing break in OQ emit
2009-09-26 18:39:54 +10:00
José Fonseca
1df539ce87
llvmpipe: Allow building with LLVM 2.6 too.
2009-09-26 09:37:43 +01:00
Dave Airlie
28f531e3fe
r300g: report GL1.5, enable cap bits for OQ and shadow.
...
Its not like it works well on 1.3 so may as well reach for greater
heights.
Signed-off-by: Dave Airlie <airlied@redhat.com >
2009-09-26 18:25:00 +10:00
Dave Airlie
20d3c85128
r300g: add z16 unorm texture format
2009-09-26 18:24:34 +10:00
Dave Airlie
07183b73eb
r300g: fix texture pitch to correct value.
...
pitch is pixels - 1, not bytes.
2009-09-26 16:39:13 +10:00
Ian Romanick
8130375e77
Merge branch 'asm-shader-rework-2'
...
Conflicts:
src/mesa/shader/program_parse.tab.c
2009-09-25 16:57:38 -07:00
Michel Dänzer
c19482b16f
st/xorg: Re-enable accelerated fills and copies.
...
These seem to work well enough now with the new code. Composite acceleration
isn't quite there yet and thus remains disabled in xorg_composite_bind_state()
for now.
2009-09-25 20:49:53 +02:00
Michel Dänzer
07e2d6edfa
st/xorg: Flush render cache if but only if a source has pending write operations.
2009-09-25 20:49:53 +02:00
Michel Dänzer
626553f327
st/xorg: Reject Composite acceleration for some cases not working yet.
2009-09-25 20:49:53 +02:00
Michel Dänzer
9c449502a2
st/xorg: Make sure struct is fully initialized.
...
gcc complained about a missing initializer.
2009-09-25 20:49:00 +02:00
Michel Dänzer
b0ddfe8a3d
st/xorg: Use generic semantic for Composite mask coordinates.
2009-09-25 20:38:49 +02:00
Michel Dänzer
ac2e0ddcd8
st/xorg: Flesh out EXA PrepareComposite hook a little.
...
Check that the formats are supported, and don't crash with source-only
pictures.
2009-09-25 20:38:49 +02:00
Michel Dänzer
b97547027e
st/xorg: Use I8 format instead of A8 for depth 8 pixmaps.
...
Seems to work better for Composite acceleration.
2009-09-25 20:38:49 +02:00
Michel Dänzer
67fb13ba68
st/xorg: Bind rasterizer state for copies.
2009-09-25 20:38:49 +02:00
Michel Dänzer
7edda9350a
st/xorg: Source-only pictures always have format PICT_a8r8g8b8.
...
See xserver/render/picture.c:createSourcePicture(). This both simplifies the
code and avoids a crash because pFormat is NULL.
2009-09-25 20:38:49 +02:00
Michel Dänzer
07f107467e
st/xorg: Better checks for unsupported component alpha pictures.
2009-09-25 20:38:49 +02:00
Michal Krol
69c7fc128c
softpipe: Grab fs output z from the correct file.
2009-09-25 18:52:13 +02:00
Michal Krol
a0fbc01cea
softpipe: Do not advertise support for L16 and YCBCR formats.
2009-09-25 18:52:12 +02:00
Michal Krol
02b81187dc
radeon: Fix newlines.
2009-09-25 18:51:55 +02:00
Brian Paul
ecf3091cc7
Merge branch 'mesa_7_6_branch'
...
Conflicts:
src/mesa/drivers/dri/intel/intel_clear.c
2009-09-25 09:00:19 -06:00
Christoph Bumiller
5f4f7ad965
nv50: fix TEX for WriteMask not equal 0xf
...
If you e.g. only need alpha, it ends up in the first reg,
not the last, as it would when reading rgb too.
2009-09-25 11:01:45 +02:00
Christoph Bumiller
513cadf5af
nv50: actually enable view volume clipping
...
Until now, only primitives wholly outside the view volume
were not drawn.
This was only visibile when using a viewport smaller than
the window size, naturally.
2009-09-25 11:01:45 +02:00
Christoph Bumiller
001daf78c8
nv50: RCP and RSQ cannot load from VP inputs
2009-09-25 11:01:45 +02:00
Christoph Bumiller
ef6805710d
nv50: fix CEIL and TRUNC
...
Separated the integer rounding mode flag for cvt.
2009-09-25 11:01:45 +02:00
Christoph Bumiller
e2b8dc3e38
nv50: implement BGNLOOP, BRK, ENDLOOP
...
There's a good chance a loop won't execute correctly
though since our TEMP allocation assumes programs to
be executed linearly. Will fix later.
2009-09-25 11:01:44 +02:00
Christoph Bumiller
1196f9fbd6
nv50: implement IF, ELSE, ENDIF opcodes
2009-09-25 11:01:44 +02:00
Cooper Yuan
16a6ca9b2b
r300g: add texture format for xvmc
2009-09-25 15:15:20 +08:00
Chia-I Wu
5a1e25afac
mesa/main: Make FEATURE_convolve follow feature conventions.
...
As shown in mfeatures.h, this allows users of convolve.h to work without
knowing if the feature is available.
2009-09-24 21:48:39 -06:00
Chia-I Wu
cb4f24e51d
mesa/main: Make FEATURE_colortable follow feature conventions.
...
As shown in mfeatures.h, this allows users of colortab.h to work
without knowing if the feature is available.
2009-09-24 21:48:22 -06:00
Chia-I Wu
dbb8fb8de9
mesa/main: Make FEATURE_pixel_transfer follow feature conventions.
...
As shown in mfeatures.h, this allows users of pixel.h to work without
knowing if the feature is available.
2009-09-24 21:48:05 -06:00
Chia-I Wu
17099f5e19
mesa/main: Add comments to mfeatures.h.
...
The comments document the conventions that a feature may follow.
2009-09-24 21:47:45 -06:00
Brian Paul
c9ddd6f810
progs/perf: glGenerateMipmap() test
2009-09-24 19:38:04 -06:00
Brian Paul
0876618a8d
mesa: _mesa_meta_GenerateMipmap() now working
...
Handles GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP.
But GL_TEXTURE_3D and texture borders not supported yet.
2009-09-24 19:36:20 -06:00
Brian Paul
e33ea11c14
mesa: remove: unused gl_vertex_program::TnlData field
2009-09-24 19:34:19 -06:00
Ian Romanick
09af58d7ed
NV fp lexer: Add UP4B and UP4UB instructions that were previously missing
2009-09-24 18:27:20 -07:00
Zack Rusin
228aa45fcb
st/xorg: start working on the Xv acceleration code
2009-09-24 19:20:41 -04:00
Zack Rusin
80965fca74
st/xorg: fills are supported plussome minor clenups
2009-09-24 19:20:41 -04:00
Zack Rusin
53d2fa46e7
st/xorg: add easier way of disabling/enabling acceleration
2009-09-24 19:20:41 -04:00
Brian Paul
01249c6d56
llvmpipe: add missing __FUNCTION__ parameter to debug_printf() calls
2009-09-24 16:08:47 -06:00
Brian Paul
a665a3416e
llvmpipe: increase max 3D texture size to 256
2009-09-24 16:07:45 -06:00
Brian Paul
29d27229a9
Merge branch 'mesa_7_6_branch'
...
Conflicts:
src/mesa/vbo/vbo_exec_array.c
2009-09-24 16:06:21 -06:00
Pauli Nieminen
fd56bee6c4
Merge branch 'mesa_7_6_branch'
2009-09-24 20:39:16 +03:00
Brian Paul
c9f7a23ef0
Merge branch 'mesa_7_6_branch'
...
Conflicts:
src/mesa/drivers/dri/r600/r700_assembler.c
src/mesa/drivers/dri/r600/r700_chip.c
src/mesa/drivers/dri/r600/r700_render.c
src/mesa/drivers/dri/r600/r700_vertprog.c
src/mesa/drivers/dri/r600/r700_vertprog.h
src/mesa/drivers/dri/radeon/radeon_span.c
2009-09-24 11:03:16 -06:00
Brian Paul
6be2bc56af
gallium/trace: casts to silence warnings
2009-09-24 10:47:42 -06:00
Brian Paul
f85816354c
tgsi/sse: remove old comments
2009-09-24 10:45:36 -06:00
Brian Paul
35cd0bbfb1
tgsi/sse: implement SEQ, SGT, SLE, SNE
2009-09-24 10:45:35 -06:00
Keith Whitwell
09a23ac3c1
progs/perf: fix warnings in readpixels test
2009-09-24 16:52:14 +01:00
Keith Whitwell
d93f022936
progs/perf: fix typo in sconscript
2009-09-24 16:50:27 +01:00
Keith Whitwell
90dcfb3b47
trace: fix printf warnings
2009-09-24 16:49:40 +01:00
Keith Whitwell
d3beaf2f32
softpipe: fix compiler warnings
2009-09-24 16:49:27 +01:00
Keith Whitwell
fca7f38441
pipebuffer: fix printf warnings
2009-09-24 16:49:05 +01:00
Keith Whitwell
0c55dd8094
pipebuffer: fix warnings
2009-09-24 16:48:49 +01:00
Keith Whitwell
cd362334ad
draw: fix warning
2009-09-24 16:44:58 +01:00
Keith Whitwell
6e0b56edf8
progs/perf: accept GL3.x also
2009-09-24 16:43:15 +01:00
Richard Li
5f06064b61
r600 : fix draw_prim bug: vertex fetcher setting.
2009-09-24 11:29:44 -04:00
José Fonseca
9659aa6482
softpipe: Use portable INLINE macro.
2009-09-24 15:28:55 +01:00
José Fonseca
e8e6d8853d
softpipe: Update SConscript.
2009-09-24 15:28:54 +01:00
Richard Li
41c5f113b5
r600 : disable draw_prim for now.
2009-09-24 10:15:19 -04:00
José Fonseca
86962d6f6e
gdi: Update for WGL state tracker interface changes.
2009-09-24 13:12:51 +01:00
José Fonseca
4e5ed05b02
wgl: DWM integration.
2009-09-24 13:12:51 +01:00
José Fonseca
9ea277ba7a
scons: Don't require -liberty on MinGW.
...
Not always present.
2009-09-24 13:12:50 +01:00
José Fonseca
622bdecabd
mesa: Fix missing finite symbol error on Windows.
...
Caused by some weird logic regarding the __WIN32__ define which made
the finite definition dependent on the header include order.
2009-09-24 13:12:50 +01:00
Alex Deucher
1bf0651d9b
r600: fix up ordering of functions in draw prims path
...
Shaders and IB need to be updated and allocated before
calling validatebuffers.
2009-09-23 19:42:07 -04:00
Alex Deucher
20e7738293
r600: fix r700PredictRenderSize for draw prims path
2009-09-23 16:54:12 -04:00
Richard Li
8a2b0f6415
r600 : add hw index buffer draw support.
2009-09-23 16:16:11 -04:00
Brian Paul
fa0816b17c
progs/perf: added glReadPixels benchmark
2009-09-23 14:05:05 -06:00
Brian Paul
489f8bc86f
progs/perf: also request a stencil buffer
2009-09-23 14:05:05 -06:00
Adam Jackson
8abe77a75a
Finish removing glcore
2009-09-23 15:22:19 -04:00
Alex Deucher
53051b8cb5
r600: fix copy/paste typo
2009-09-23 15:02:19 -04:00
Alex Deucher
ec205bbd57
r600: fix some warnings
2009-09-23 14:58:46 -04:00
Andre Maasikas
2d2f49c919
r600: add support for CUBE textures, also TXP
...
seems to work here ...
2009-09-23 14:58:46 -04:00
Michal Krol
a0549f6634
progs/perf: Actually bind the newly created vbo.
2009-09-23 20:24:35 +02:00
Brian Paul
35af3f94a3
llvmpipe: move tile cache datatypes into .c file since they're private
2009-09-23 11:53:12 -06:00
Brian Paul
b4a40d1052
softpipe: replace macros with inline functions
...
And update comments.
2009-09-23 11:51:52 -06:00
Brian Paul
e2329f2795
softpipe: white-space/formatting fixes and updated comments
2009-09-23 11:35:33 -06:00
Brian Paul
5244ce786a
llvmpipe: added max texture/surface size sanity check
...
Carried over from softpipe driver.
2009-09-23 11:05:00 -06:00
Brian Paul
b26f1df920
llvmpipe: increase MAX_WIDTH/HEIGHT to match max texture size
2009-09-23 11:04:07 -06:00
Brian Paul
de25f82067
Merge branch 'mesa_7_6_branch'
...
Conflicts:
src/gallium/drivers/softpipe/sp_tile_cache.c
2009-09-23 11:00:04 -06:00
Keith Whitwell
890679d432
Merge branch 'softpipe-opt'
...
Conflicts:
progs/demos/cubemap.c
src/gallium/drivers/softpipe/sp_tex_sample.c
src/gallium/drivers/softpipe/sp_texture.c
2009-09-23 17:37:28 +01:00
Keith Whitwell
a1fa770c01
gallium/include: update some comments
2009-09-23 17:04:48 +01:00
Zack Rusin
1ddb217d8e
st/xorg: fix a typo
...
it'd be too easy, eh
2009-09-23 12:05:13 -04:00
Zack Rusin
5a7f708530
st/xorg: keep the user buffer contents around
...
Michel noticed that they were getting out of scope
2009-09-23 12:03:35 -04:00
Brian Paul
aae77319c0
progs/perf: set TexSubImage4=FALSE
2009-09-23 08:06:37 -06:00
José Fonseca
31f1571d1f
wgl: Eliminate the shared layer; implement WGL API on top of the ICD callbacks.
...
While the WGL API has been stale for decades now, the ICD interface has
been updated with new Windows versions, so it is much easier to define
everything in terms of the ICD interfaces, which is pretty much what
Microsoft's opengl32.dll does anyway.
2009-09-23 10:32:52 +01:00
José Fonseca
f8c11526c0
gdi: Update for WGL statetracker source reorg.
2009-09-23 10:32:51 +01:00
José Fonseca
f724036f00
wgl: Flatten the source tree.
...
It is easier to have the WGL API on top of the ICD callbacks as
Microsoft's own implementation does, than to have a seperate shared
entity. This source reorganization is in antecipation of that.
2009-09-23 10:32:51 +01:00
José Fonseca
8d1af5991d
wgl: Fix debug_printf format specifiers.
2009-09-23 10:32:51 +01:00
José Fonseca
21a949365d
gallium: Update vendor string.
2009-09-23 10:32:50 +01:00
root
75276ea316
softpipe: fix bugs in POT texture sampling when texture is not square
...
Before, if level was greater than the logbase2(base size) we were
doing a negative bit shift and winding up with garbage values.
2009-09-22 20:14:10 -06:00
Brian Paul
5dbedf3d7e
softpipe: additional assertions
2009-09-22 16:59:28 -06:00
Brian Paul
0670df5cb2
softpipe: disable a _debug_printf()
2009-09-22 16:42:15 -06:00
Brian Paul
02f2bcdf1d
Merge branch 'mesa_7_6_branch'
2009-09-22 16:06:18 -06:00
Brian Paul
d04fa73cec
progs/perf: added glCopyTex[Sub]Image2D test
2009-09-22 15:39:05 -06:00
Richard Li
98d5ec10d0
r600 : add draw_prim support, make up one lost change.
2009-09-22 17:26:23 -04:00
Richard Li
81283b0bf0
r600 : add draw_prim support.
2009-09-22 17:04:49 -04:00
Keith Whitwell
fe9ca0f718
softpipe: need to write depth/stencil values even when stencil fails
2009-09-22 20:47:37 +01:00
Keith Whitwell
207764894b
softpipe: set quad->facing value
2009-09-22 20:47:07 +01:00
Keith Whitwell
b1139e9ad8
softpipe: fix polygon stipple
2009-09-22 19:38:34 +01:00
Brian Paul
da0e4e557b
progs/perf: test glGetTexImage() also
2009-09-22 12:26:12 -06:00
Keith Whitwell
b626176f06
softpipe: fix occlusion counting
2009-09-22 19:26:08 +01:00
Jakob Bornecrantz
bade906ed1
st/xorg: Fix two leeks
...
We where leaking both surfaces in the composit code
and textures from pixmaps.
2009-09-22 11:06:57 -07:00
Jakob Bornecrantz
19798e17fe
i915g: Activate trace
2009-09-22 11:06:57 -07:00
Jakob Bornecrantz
e369294f76
i915g: Do propper references of surfaces in context
2009-09-22 11:06:56 -07:00
Brian Paul
67d7021ae0
progs/perf: add missing texture enable in fbobind.c
2009-09-22 11:15:11 -06:00
Brian Paul
ed113da12e
progs/perf: added fbobind.c test to test FBO binding speed
2009-09-22 11:15:11 -06:00
Brian Paul
cfb0f2489d
progs/perf: added PerfExtensionSupported() helper
2009-09-22 11:15:11 -06:00
Keith Whitwell
0ec26cce36
teximage: add more tests, image formats
...
Add a test which creates a new texture from scratch before uploading.
Add more image formats.
Don't run all tests on all image formats.
2009-09-22 18:00:11 +01:00
Brian Paul
bae2d58827
progs/perf: add another VBO test for Create/Draw/Destroy pattern
...
Report both MB/sec and draw/sec.
2009-09-22 09:53:35 -06:00
Brian Paul
7e5004b298
progs/perf: simplify the code
2009-09-22 09:43:08 -06:00
Brian Paul
aa80851e16
progs/perf: fix comment
2009-09-22 09:29:27 -06:00
Brian Paul
32979ae15f
progs/perf: updated comments
2009-09-22 07:50:12 -06:00
Keith Whitwell
6a09c9d2d8
progs/perf: make teximage results easier to read, more reproducible
...
Always run the same tests on different drivers, give zero results
where test image is too big for driver.
Add a newline between groups of tests.
2009-09-22 12:35:56 +01:00
Keith Whitwell
89f2799dac
progs/perf: reset row_length after subimage test
...
Also test fewer sizes in teximage generally.
2009-09-22 11:58:09 +01:00
Keith Whitwell
bf014d03fe
progs/perf: clean up swapbuffers test a bit
2009-09-22 11:27:18 +01:00
Keith Whitwell
ac6a5107e2
progs/perf: break up long runs of fullscreen quads
...
Not all drivers cope gracefully with command-buffers with zillions of
fullscreen quads.
2009-09-22 11:21:10 +01:00
Keith Whitwell
a7b2659f02
progs/perf: add first attempt at a swapbuffers rate test
...
This is pretty ugly as the original framework assumed you'd set
a single window size at startup and keep it throughout, but for
swapbuffers you want to test the rate at various window sizes.
With luck a nicer solution can be found, but this at least lays out
a marker.
2009-09-22 11:21:09 +01:00
Brian Paul
94a020cfe6
vbo: added comment about max array index
2009-09-21 16:54:35 -06:00
Brian Paul
9a3333f436
vbo: restore some lost warning output
2009-09-21 16:51:34 -06:00
Brian Paul
972e995b14
vbo: disable the GL_ARB_draw_elements_base_vertex rebase path
...
This was introduced with commit 92d7ed8a20
.
It causes rendering of stray polygons (with sw rendering at least) when
running the OGL Distilled / Picking demo (click on an object).
This needs additional debugging to fix/restore.
Found one suspect thing: in _tnl_draw_prims() there's some mixed signed/
unsigned arithmetic/comparing at line 422 that may be incorrect.
2009-09-21 16:10:50 -06:00
Adam Jackson
83019ffc07
selinux: Fix mmap() return value check
2009-09-21 17:04:22 -04:00
Brian Paul
40603526f4
mesa: refine the error checking vbo_exec_DrawRangeElements()
...
If the 'end' index is out of bounds issue a warning as before. But instead
of just no-op'ing the draw call, examine the actual array indices to see
if they're OK. If the max array index is out of bounds, issue another
warning and no-op the draw call. Otherwise, draw normally. This is a
debug build-only feature since it could impact performance.
This "fixes" the missing torus in the OGL Distilled / Picking demo.
2009-09-21 14:56:58 -06:00
Brian Paul
e5d29ebb5e
mesa: make max_buffer_index() a non-static function
2009-09-21 14:56:40 -06:00
Maciej Cencora
4916a5a2e7
radeon: update buffer map/unmap code for changes introduced in 92033a9516
and 822c796481
2009-09-21 14:56:11 -06:00
Maciej Cencora
d100cbf721
mesa: add some debug info to teximage.c
2009-09-21 14:56:11 -06:00
Maciej Cencora
b1c9c5a800
r300: fix a typo
2009-09-21 14:56:11 -06:00
Brian Paul
d504a7669d
swrast: fix cube face selection
...
If arx and ary are equal, we still want to choose from one of them,
and not arz.
This is the same as Michal's softpipe fix.
2009-09-21 14:56:10 -06:00
Alex Deucher
c63e78b3e5
r600: fix typo in the last commit
...
128 gprs, 256 reg-based consts
2009-09-21 16:48:55 -04:00
Alex Deucher
1869bdabba
r600: various cleanups
...
- max texture size is 8k, but mesa doesn't support
that at the moment.
- attempt to set shader limits to what the hw actually
supports
- clean up some old r300 cruft
- no need to explicitly disable irqs. This is fixed
in the drm now.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com >
2009-09-21 16:33:11 -04:00
José Fonseca
734a498ed4
mesa: Ensure TGSI tokens are freed with gallium's free.
...
To avoid breaking the gallium's builtin malloc debugging.
2009-09-21 20:12:03 +01:00
Brian Paul
9297e6968a
progs/perf: added fill-rate test
...
Many more fill modes could be tested, but this hits the basics including
blending, texturing and shaders.
2009-09-21 12:17:49 -06:00
Brian Paul
05bce08980
progs/perf: added helpers for creating simple textures and shader programs
2009-09-21 11:58:03 -06:00
Brian Paul
83fbee6e0b
progs/perf: offsetof() should be defined in stddef.h, include it
...
If this breaks mingw, feel free to revert this.
2009-09-21 11:09:47 -06:00
Nicolai Hähnle
9ca94f91a3
r300g: Fix bad formatting parameters in calls to debug_printf
...
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-09-21 17:41:54 +02:00
Nicolai Hähnle
496137d8eb
gallium debug: Add gcc printf hint to debug_printf
...
This causes gcc to issue warnings when format parameters do not match up
with the format string in calls to debug_printf.
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-09-21 17:41:54 +02:00
Keith Whitwell
7ce0421fb7
progs/perf: a few more vbo upload modes
...
Some tests, eg small SubData are probably overwhelmed by the cost of
performing the draw after each upload. Add a varient which does a lot
of subdata uploads and then a single draw.
Also try to avoid cache-artifacts in the upload timings.
2009-09-21 15:57:14 +01:00
Keith Whitwell
25a580c841
progs/perf: human-readable drawoverhead output
2009-09-21 15:57:14 +01:00
Keith Whitwell
6ab7c127f7
progs/perf: human-format vertexrate output
2009-09-21 15:57:14 +01:00
Keith Whitwell
ed63bd62d8
progs/perf: add human-readable float formatter
2009-09-21 15:57:13 +01:00
Vinson Lee
d17af7d1e1
progs/glsl: Include local headers before installed headers during compilation.
...
Fixes compilation errors on platforms with insufficient older installed
GL headers.
2009-09-21 08:44:56 -06:00
Andre Maasikas
2d729e6e3b
r600: fix some issues with LIT instruction
...
- MUL_LIT is ALU.Trans instruction
- some Trans instructions can take 3 arguments
- don't clobber dst.x, use dst.z as temp, it'll get written correct
value in last insn
- respect source swizzles
2009-09-21 10:14:25 -04:00
Nicolai Hähnle
81c7561d9d
Merge branch 'master' into r300-compiler
...
There were additional non-textual conflicts.
Conflicts:
src/gallium/drivers/r300/r300_tgsi_to_rc.c
src/mesa/drivers/dri/r300/compiler/r3xx_vertprog.c
src/mesa/drivers/dri/r300/compiler/radeon_program.c
src/mesa/drivers/dri/r300/compiler/radeon_program_alu.c
2009-09-21 13:26:50 +02:00
Nicolai Hähnle
3083ba38f4
Merge branch 'mesa_7_6_branch'
2009-09-21 13:08:34 +02:00
Michel Dänzer
c67bb22fe7
Merge branch 'mesa_7_6_branch'
2009-09-21 10:48:32 +02:00
Ben Skeggs
774db70506
nouveau: allow building modesetting_drv.so
2009-09-21 14:51:39 +10:00
Ben Skeggs
344e2fd1f2
nouveau: drm_api create_screen()'s 'arg' argument can be NULL
2009-09-21 14:46:50 +10:00
Brian Paul
e3384a0d53
windows: call _mesa_meta_init/free()
2009-09-20 22:19:28 -06:00
Brian Paul
2c1937480a
xlib: always call _mesa_meta_init/free()
2009-09-20 22:19:06 -06:00
Brian Paul
4a4914e414
dri/swrast: call _mesa_meta_init/free()
2009-09-20 22:13:28 -06:00
Brian Paul
1741bc1a79
osmesa: call _mesa_meta_init/free()
2009-09-20 22:13:09 -06:00
Brian Paul
a1cf9b6abe
Revert "st/mesa: Compile in meta.c."
...
This reverts commit 6c5726cd39
.
2009-09-20 22:08:30 -06:00
Brian Paul
1eda10d073
Revert "scons: add meta.c to sources"
...
This reverts commit 41fefe88c5
.
2009-09-20 22:08:21 -06:00
Brian Paul
da9d8f1924
Revert "mesa: move _mesa_meta_init/free() calls to core Mesa"
...
This reverts commit 651cffd626
.
The commit inadvertantly introduced a new gallium dependency on the meta code.
2009-09-20 22:06:03 -06:00
Brian Paul
41fefe88c5
scons: add meta.c to sources
2009-09-20 21:31:45 -06:00
Chia-I Wu
6c5726cd39
st/mesa: Compile in meta.c.
...
meta was moved to core Mesa since
651cffd626
.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-09-20 21:31:45 -06:00
Chia-I Wu
81bac6e2a8
intel: meta clear has a new name.
...
It was renamed to _mesa_meta_Clear.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com >
2009-09-20 21:31:45 -06:00
Dave Airlie
e9d6ab72be
xorg/st: fixup builds against later dpms headers.
2009-09-21 13:26:48 +10:00
José Fonseca
1a9eec84bd
scons: Drop gprof support for profile builds; tweak optimization flags instead.
...
gprof is useful for shared libraries, hence our drivers. Nevertheless
profilers like oprofile can benefit from disabling some relatively
minor optimizations for more accurate / complete results.
2009-09-20 18:09:34 +01:00
José Fonseca
911a7a82cd
llvmpipe: Fix lp_get_cached_tile.
...
Align coordinates to tile boundaries.
2009-09-20 18:09:34 +01:00
José Fonseca
76c2e34b22
llvmpipe: Update tile status on flush.
2009-09-20 18:09:34 +01:00
Brian Paul
ebf2710b2f
Merge branch 'mesa_7_6_branch'
...
Conflicts:
src/mesa/drivers/dri/intel/intel_clear.c
2009-09-20 10:36:45 -06:00
Brian Paul
ed4076b5b8
mesa: remove redundant readbuffer check
2009-09-19 17:26:14 -06:00
Brian Paul
4de8e2123e
mesa: rename functions to be more consistant with rest of mesa
2009-09-19 17:06:15 -06:00
Brian Paul
232fc7d333
swrast: remove obsolete s_imaging.c file
2009-09-19 16:43:18 -06:00
Brian Paul
7e0f2ce941
swrast: remove prototypes for obsolete functions
2009-09-19 16:43:17 -06:00
Brian Paul
58e843dda0
mesa: remove s_imaging.c from build
2009-09-19 16:43:17 -06:00
Brian Paul
32e4b6c607
windows: replace old ColorTable, Convolution functions with new
2009-09-19 16:43:17 -06:00
Brian Paul
bc1c8d4af7
mesa: use new meta functions
2009-09-19 16:43:17 -06:00
Brian Paul
3e5a35269b
mesa: meta functions for glCopyColorTable, glCopyConvolutionFilter, etc
2009-09-19 16:43:17 -06:00
Brian Paul
dc3839ef3d
mesa: move readbuffer tests
2009-09-19 16:43:17 -06:00
Brian Paul
883dd9d770
mesa: use _mesa_get_current_tex_unit() helper
2009-09-19 16:43:17 -06:00
Brian Paul
3ed9dab19c
mesa: use _mesa_get_current_tex_unit() helper
2009-09-19 16:43:16 -06:00
Brian Paul
b0e9ea6084
mesa: fix some glCopyTex[Sub]Image regressions related to convolution
2009-09-19 16:43:16 -06:00
Brian Paul
651cffd626
mesa: move _mesa_meta_init/free() calls to core Mesa
2009-09-19 16:43:16 -06:00
Alex Deucher
b8477f079b
r600: fix point sizes
...
registers takes radius
2009-09-19 15:18:42 -04:00
Alex Deucher
368fb578f8
r600: fix polygon offset
2009-09-19 14:48:44 -04:00
Brian Paul
67cad78e08
swrast: remove obsolete s_texstore.c
...
Replaced by new, simpler meta functions.
2009-09-19 11:09:25 -06:00
Brian Paul
2f89044e6f
swrast: remove prototypes for obsolete functions
2009-09-19 11:08:49 -06:00
Brian Paul
14869c0984
mesa: remove s_texstore.c from makefile/project files
2009-09-19 11:08:20 -06:00
Brian Paul
a9c64daf02
glapi: replace old TexCopy functions w/ new
2009-09-19 11:05:54 -06:00
Brian Paul
41a171b714
windows: replace old TexCopy functions w/ new
2009-09-19 11:03:33 -06:00
Brian Paul
e2e0735e0e
gldirect: remove refs to soon-to-be-obsolete functions
...
I don't know if this driver is anywhere near build-able, but anyway.
2009-09-19 11:01:27 -06:00
Brian Paul
6f9dbe7739
mesa: use new _mesa_meta_CopyTex[Sub]Image() functions
2009-09-19 10:58:11 -06:00
Brian Paul
af69346446
intel: use new _mesa_meta_CopyTex[Sub]Image() functions
2009-09-19 10:58:07 -06:00
Brian Paul
22f02509f2
glapi: regenerated files
2009-09-19 10:00:55 -06:00
Brian Paul
c9a87ff441
glapi: added tokens, function for GL_ARB_provoking_vertex
2009-09-19 10:00:19 -06:00
Michal Krol
18d0f9a7a3
llvmpipe: Respect input interpolators for the shader.
...
Cherry-picked from fb2c7b6743
2009-09-19 14:57:24 +01:00
José Fonseca
fdd605e446
mesa: Allow BlitFramebuffer from a texture.
...
Although GL_EXT_framebuffer_blit does not mention textures, it doesn't
forbid them either, and some thirdparty driver appear to support this.
2009-09-19 14:33:35 +01:00
Michal Krol
de685b37a9
softpipe: Fix cube face selection.
...
If arx and ary are equal, we still want to choose from one of them,
and not arz.
2009-09-18 14:36:59 +01:00
Michal Krol
fb2c7b6743
softpipe: Respect input interpolators for the shader.
2009-09-17 16:06:11 +01:00
Michal Krol
5f0b49e7a9
tgsi: Scan input interpolators, too.
2009-09-17 16:06:09 +01:00
Keith Whitwell
2884c31d94
progs/perf: convert some DOS line-endings
...
It seems like some of these files were committed with CRLF initially.
2009-09-17 12:09:16 +01:00
Keith Whitwell
e95a3a23dc
progs/perf: add scons support, get working under mingw
2009-09-17 12:08:04 +01:00
Brian Paul
21caa29fbd
mesa: begin some texstore code refactoring
...
Next step will be to move the calls to ctx->Driver.ChooseTextureFormat()
into the teximage.c functions so drivers don't have to do it.
2009-09-16 21:50:04 -06:00
Brian Paul
1d8fbef4f2
mesa: meta driver functions for glCopyTex[Sub]Image()
...
Implement in terms of glReadPixels + glTex[Sub]Image().
This will allow us to get rid of some swrast texture code.
2009-09-16 20:09:07 -06:00
Brian Paul
9abbedad09
progs/perf: initial set of simple performance test programs
...
Initial tests include:
drawoverhead - measure overhead of state changes w.r.t drawing commands
teximage - measure glTexImage2D() and glTexSubImage2D() speed
vbo - measure glBufferData() and glBufferSubData() speed
vertexrate - measure vertex rate for immediate mode, glDrawArrays, VBOs, etc.
2009-09-16 19:33:01 -06:00
Brian Paul
4df2f7af5e
progs/glsl: minor Makefile clean-ups
2009-09-16 19:28:55 -06:00
Brian Paul
8d47b4906b
swrast: remove mipmap generation checks (done in core Mesa now)
2009-09-16 19:28:55 -06:00
Brian Paul
4e84b96d92
s3v: remove unneeded initializations
2009-09-16 19:28:54 -06:00
Brian Paul
1b1125c239
ffb: remove disabled code
2009-09-16 19:28:54 -06:00
José Fonseca
f911d196cf
llvmpipe: Don't assert due to unsupported texture wrap modes.
...
Issue a warning and fallback to clamping.
2009-09-16 20:42:09 +01:00
Ian Romanick
5ce72c559c
Merge branch 'mesa_7_6_branch'
2009-09-16 08:05:36 -07:00
Brian Paul
aabcc6cb23
gallium: remove incorrect 'return' stmt
2009-09-16 08:59:32 -06:00
José Fonseca
c29905aa31
gallium: Deprecate PIPE_CAP_S3TC.
...
No longer used. S3TC support is queried via
pipe_screen::is_format_supported.
2009-09-16 14:33:52 +01:00
Michal Krol
ec48396e0f
softpipe: Do not advertise Z32_UNORM as a supported format.
2009-09-16 13:56:58 +01:00
José Fonseca
b60e1d7630
gdi: Integrate with llvmpipe where available.
2009-09-16 11:35:23 +01:00
José Fonseca
459ea0095c
llvmpipe: Make the code portable for MinGW.
2009-09-16 11:35:23 +01:00
Dave Airlie
858a2a2ac7
radeon: cleanup compile defines mess.
...
I inherited this and really it stayed around far too long,
make it nice and simple.
2009-09-16 13:48:45 +10:00
Dave Airlie
a6a21eb00d
radeon: oops remove debugging left on in previous patch
2009-09-16 13:25:02 +10:00
Dave Airlie
2fdb0e5d3b
radeon: use txformat to decide to emit rect tex state.
...
This is more logical, and fixes a TFP issue.
2009-09-16 13:13:43 +10:00
Brian Paul
2914f2b7fd
mesa: move generate mipmap calls
...
Per the suggestion in the Intel driver, move the calls to
ctx->Driver.GenerateMipmap() into core Mesa so that drivers don't
have to worry about it.
2009-09-15 18:17:43 -06:00
Brian Paul
ef6ee07fc7
mesa: minor clean-up
2009-09-15 18:17:43 -06:00
Brian Paul
a31ac84d74
mesa: remove last of gotos
2009-09-15 18:17:43 -06:00
Brian Paul
c352566933
mesa: more goto removal
2009-09-15 18:17:43 -06:00
Brian Paul
ecf6f37fc2
mesa: remove some gotos
...
This will make some subsequent changes easier...
2009-09-15 18:17:42 -06:00
Brian Paul
c26c2006df
mesa: clean-up fbo debug code
2009-09-15 18:17:42 -06:00
Brian Paul
0b0fc4072f
progs/demos: use non-default texobj in cubemap.c
2009-09-15 18:17:42 -06:00
Brian Paul
7f86da6c60
progs/demos: create a texture object in lodbias.c
...
Before, we were using the default texture object (name=0). This caused
the intel_generate_mipmap() path to fail since passing texture=0 to
glFramebufferTexture2DEXT() causes us to _unbind_ the texture if present.
2009-09-15 18:17:42 -06:00
Zack Rusin
a016043386
st/xorg: fixing copies and composite shaders
...
copies were busted when src == dst. also the composite shaders
were incorrectly using the fragments instead of the texture coordinate.
2009-09-15 19:50:36 -04:00
Zack Rusin
8adcad0c70
st/xorg: lots of fixes
...
fixes blending binding and copy coordinates
2009-09-15 19:50:34 -04:00
Brian Paul
f9574e05c2
docs: GL_ARB_provoking_vertex
2009-09-15 16:01:51 -06:00
Brian Paul
2e7a1dd8ca
mesa: added GL_ARB_provoking_vertex (same as EXT version)
2009-09-15 16:01:51 -06:00
Alex Deucher
87d40a95bf
radeon: don't build non-r600 span code on r600
2009-09-15 17:13:08 -04:00
Alex Deucher
49fc41eeed
r600: minor span cleanups
2009-09-15 17:13:08 -04:00
Ian Romanick
ac4e23d784
Merge branch 'mesa_7_6_branch'
2009-09-15 13:14:38 -07:00
Zack Rusin
f1ce6b09cd
st/xorg: Brian suggested that those could be mad's
...
optimizes the common paths
2009-09-15 15:21:42 -04:00
Brian Paul
b0c52e491d
mesa: remove incorrect texture state check
...
Fixes incorrectly textured bitmap text in engine demo.
It's incorrect to test the texture enable bits here since they may have
been changed by disabling the shader above. Optimization is still possible
but will have to be reexamined.
2009-09-15 12:36:55 -06:00
Maarten Maathuis
26860a6e2f
nv50: avoid excessive FIRE_RING
...
- And reduce RING_SPACE to 2, instead of 3.
2009-09-15 18:59:53 +02:00
Maarten Maathuis
db37279e0b
nv50: use flush_notify to reduce number of relocs
2009-09-15 18:59:53 +02:00
Michel Dänzer
0469465c31
st/xorg: Only unreference texture on pixmap destruction, don't destroy it.
...
Fixes memory corruption if e.g. the driver still has references to the texture.
2009-09-15 18:31:07 +02:00
Michel Dänzer
45cf2696ca
st/xorg: Explicitly check whether the driver supports the pixmap formats.
...
Rather than arbitrarily checking for pixmap depth < 15.
2009-09-15 18:30:58 +02:00
Michel Dänzer
be94a1d3bc
st/xorg: Use A8 format for depth 8 pixmaps.
...
The inconsistent bpp caused issues with UploadTo/DownloadFromScreen.
2009-09-15 18:23:00 +02:00
Brian Paul
be0cdd77ea
st/mesa: disable accidentally committed _mesa_print_program() call
2009-09-15 09:52:27 -06:00
Brian Paul
41bbc83951
Merge branch 'mesa_7_6_branch'
2009-09-15 09:47:35 -06:00
Brian Paul
c0cf9dc05e
ARB prog parser: regenerated file
2009-09-15 09:40:26 -06:00
Brian Paul
2aad3a855b
ARB prog parser: more detailed error message for out of bounds ADDR offsets
2009-09-15 09:40:25 -06:00
Andre Maasikas
5ef40337ab
r600: support position_invariant programs
2009-09-15 11:27:51 -04:00
José Fonseca
a18301790c
gallium: Use the enum for pipe_transfer::usage.
2009-09-15 16:02:55 +01:00
José Fonseca
cb5f1bce23
gallium: pipe_transfer_destroy helper inline.
2009-09-15 16:02:54 +01:00
Christoph Bumiller
d3a9cf54c0
nv50: fix stupid thinko in emit_set
...
When swapping sources 0 and 1, EQ of course does *not*
become NE, etc.
Introduced in 2b963f5c72
.
2009-09-15 15:37:10 +02:00
Michal Krol
7aee53002c
gallium: Fix pointer type casts.
2009-09-15 12:00:27 +01:00
Christoph Bumiller
750c6cae3d
nv50: let programs use the whole param buffer
...
Allocation is unnecessary since all uniforms are
uploaded on every constant buffer change anyway.
2009-09-15 12:13:23 +02:00
Christoph Bumiller
01670ca807
nv50: add preliminary support for point sprites
2009-09-15 12:13:23 +02:00
Christoph Bumiller
06dac41cc5
nv50: add support for point size per vertex
2009-09-15 12:13:23 +02:00
Christoph Bumiller
4d7b4781c8
nv50: add support for light-twoside
2009-09-15 12:13:23 +02:00
Christoph Bumiller
6516594c8e
nv50: proper linkage between VP and FP
...
This moves construction of the mapping between VP outputs
and FP inputs into validation.
The map also contains slots for special outputs like clip
distance and point size, so we need to at least merge the
VP related and FP related parts on validation if we want
to support those.
Now we match every single FP input component with results
from the VP and leave those not read out of the map, or
replace those not written by 0 (xyz) or 1 (w).
The bitmap indicating linear interpolants is also filled,
and flat FP inputs are mapped in only after non-flat ones,
as is required.
Furthermore, we can save some space by only fetching VP
attrs we actually use, and avoid wasting any output regs
because of TGSI using less than 4 components.
2009-09-15 12:13:23 +02:00
Christoph Bumiller
38849c529e
nv50: move allocation of pc regs
...
Make use of tgsi_shader_info to determine how many nv50_regs we
need to allocate, whether program uses KIL, or writes DEPR.
2009-09-15 12:13:23 +02:00
Christoph Bumiller
e0951797cb
nv50: nicer initialization of nv50_regs
2009-09-15 12:13:23 +02:00
Christoph Bumiller
849885c7a6
nv50: handle CEIL and TRUNC opcodes
2009-09-15 12:13:23 +02:00
Christoph Bumiller
2b963f5c72
nv50: handle SEQ, SGT, SLE, SNE opcodes
2009-09-15 12:13:23 +02:00
Christoph Bumiller
e774b3c0f2
nv50: SIN and COS use src0.w for dst.w
2009-09-15 12:13:22 +02:00
Christoph Bumiller
81de711fc8
nv50: use broadcast TEMP reg in tx_insn
...
Makes some opcode cases nicer and might reduce the total
nr of TEMPs required, or save some MOVs.
2009-09-15 12:13:22 +02:00
Christoph Bumiller
234d82ed63
nv50: add nv50_tgsi_insn to handle swizzles safely
2009-09-15 12:13:22 +02:00
Christoph Bumiller
2da8608ad7
nv50: add functions for swizzle resolution
...
We're going to try to reorder the scalar ops of a vector instr
to accomodate swizzles that would otherwise require us to emit
to an additional TEMP first (like MOV R0.xy, R0.zx).
2009-09-15 12:13:22 +02:00
Christoph Bumiller
5d141b3e3e
nv50: extend insn src mask function
...
Extend its usage to avoiding e.g. emission of negation
instructions in tx_insn for sources we don't need.
2009-09-15 12:13:22 +02:00
Cooper Yuan
287f0072d2
st/g3dvl: pass color values to softpipe clear function
2009-09-15 15:25:47 +08:00
Cooper Yuan
2ef8c60e55
xvmc: Generate new resource ID in _XIDHandler, otherwise it's invalid.
2009-09-15 13:16:56 +08:00
Zack Rusin
ef77462171
st/xorg: add some debugging helpers
2009-09-14 19:03:28 -04:00
Alex Deucher
364ca57aff
r600: add span support for 1D tiles
...
1D tile span support for depth/stencil/color/textures
Z and stencil buffers are always tiled, so this fixes
sw access to Z and stencil buffers. color and textures
are currently linear, but this adds span support when we
implement 1D tiling.
This fixes the text in progs/demos/engine and progs/tests/z*
2009-09-14 18:10:24 -04:00
Alex Deucher
f662cedae4
r600: fix warning
...
Noticed by rnoland on IRC.
2009-09-14 18:10:24 -04:00
Brian Paul
909ab3377f
st/mesa: minor whitespace, comment clean-ups
2009-09-14 16:01:27 -06:00
Brian Paul
5a87a25a65
st/xorg: fix ureg_DECL_constant() parameters
...
This fixes the compilation errors reported in bug 23945 but someone more
familiar with the code should review for correctness and close the bug
report.
2009-09-14 15:47:13 -06:00
José Fonseca
d3f5a2e5ab
scons: Allow to use only the WINDDK headers.
2009-09-14 20:12:02 +01:00
José Fonseca
a4a4553a80
scons: Allow to use MS's DXSDK headers with MinGW.
2009-09-14 20:12:01 +01:00
José Fonseca
c51bd94a14
gallium: Add pipe_transfer_map/unmap inlines.
2009-09-14 20:12:01 +01:00
José Fonseca
88b88bba68
util: Add _BitScanForward intrinsic's declaration.
...
It is missing in some Microsoft DDKs.
2009-09-14 20:12:01 +01:00
Brian Paul
aa522e6cc4
intel: minor code clean-ups
2009-09-14 12:42:18 -06:00
Brian Paul
8ec456c68c
intel: fix renderbuffer map/unmap regression
...
Commit 36dd53a3cd
caused a few regressions
because the glReadBuffer() buffer wasn't getting mapped when GL_READ_BUFFER
!= GL_DRAW_BUFFER.
2009-09-14 12:42:18 -06:00
Brian Paul
3c31049439
intel: remove unneeded driver function assignments
...
These default swrast functions are already installed by
_mesa_init_driver_functions().
2009-09-14 12:42:18 -06:00
Brian Paul
284d3b2d9c
progs/tests: exercise display lists and pixelstore
2009-09-14 12:42:17 -06:00
Keith Whitwell
d7512521fd
mesa/st: remove dead comment
2009-09-14 17:11:09 +01:00
Keith Whitwell
4295b34d25
st/mesa: convert to new tgsi_ureg mechanism for shader emit
...
Should be easier to read and work with than the older ways of emitting
TGSI tokens.
Also, emit simpler TGSI than previously:
- translate away source and dest extended modifiers
- translate away the SWZ opcode
2009-09-14 17:09:15 +01:00
Marcin Kościelnicki
d8a191e314
nv50: Fix m2mf positions.
2009-09-14 12:12:03 +02:00
José Fonseca
b4835ea03d
llvmpipe: Make lp_type a regular union.
...
Union not worth the hassle of violating C99 or adding a name to
the structure.
2009-09-14 11:05:38 +01:00
José Fonseca
fa150debf0
util: Fix a1r5g5b5's format description.
2009-09-14 11:05:38 +01:00
Cooper Yuan
aad0deee4b
g3dvl: update tgsi_opcode in order to build g3dvl library
2009-09-14 16:23:03 +08:00
Keith Whitwell
66a7eedaa2
tgsi: handle some src/dst aliasing in tgsi_sse2.c
...
Src/Dst aliasing (aka SOA dependencies) requires some care to ensure
intermediate results do not overwrite yet-to-be read source registers.
This change ensures that MOV/SWZ handle this correctly, which is poor but
no worse than the current tgsi_exec.c path. Remove the fallback as there
is nothing to be gained correctness-wise between the two implementations now.
Fixing this properly looks like a bit of work in this code, but might be
easily achieved by sending destination writes to temporary storage.
2009-09-13 11:59:24 -07:00
José Fonseca
86226d5ea1
llvmpipe: Compute derivatives.
2009-09-13 16:22:27 +01:00
José Fonseca
4b32dd3007
llvmpipe: Remove dead references to pipe_winsys.
2009-09-13 16:13:12 +01:00
José Fonseca
5e13e987da
llvmpipe: Use const keyword for input array arguments.
2009-09-13 16:12:48 +01:00
José Fonseca
faec23387e
llvmpipe: Delay storing into the dst register to prevent clobbering the src registers.
...
How I'm thankful for regular expressions -- just a couple of them were
all that was needed to do this otherwise tiresome and bug prone change.
2009-09-13 14:42:52 +01:00
José Fonseca
873773ee2b
llvmpipe: Translate more TGSI opcodes.
...
Basically cover all low hanging fruit, and mark the still missing opcodes
as "fixme" or deprecated.
2009-09-13 13:55:08 +01:00
José Fonseca
00dd0156e0
llvmpipe: Add a few more common arithmetic functions.
...
We are relying on SSE4.1 for round/trunc/ceil/floor. We'll need to
eventually find alternatives for the rest of the world.
2009-09-13 13:50:19 +01:00
José Fonseca
d7aa114e16
llvmpipe: Rename function to free up lp_build_trunc to the usual arithmetic meaning.
2009-09-13 13:45:48 +01:00
Keith Whitwell
18e5f1cee4
tgsi: implement saturation
...
Fix recent performance regression.
2009-09-12 18:33:46 -07:00
Keith Whitwell
055fe5768c
tgsi: add missing implementation of constant decl change
2009-09-12 16:27:25 -07:00
Cooper Yuan
bffa18624d
r300g: delete unused flag due to commit: 09b566e161
2009-09-13 07:10:34 -04:00
Keith Whitwell
11f41f54cf
ureg: add a mechanism to get the built tokens rather than a full shader
...
Previously ureg would always call the driver's create-shader function. This
allows the caller the opportunity to hold onto the tokens if it needs to
reuse them, eg. to create an internal draw shader.
2009-09-12 14:18:50 -07:00
Keith Whitwell
c23894295b
ureg: add generic emitters for tex and branch instructions
...
Couldn't previously emit these except by calling the opcode-specific helper.
2009-09-12 14:18:00 -07:00
Keith Whitwell
ae4704eabc
tgsi/ureg: give ureg_DECL_constant an explicit index parameter
...
Avoid the need to emit all constant declarations in order. Makes
referring to a specific constant in the constant buffer much easier.
2009-09-12 14:16:00 -07:00
Keith Whitwell
09b566e161
mesa: remove unused SATURATE_PLUS_MINUS_ONE flag
...
Never set in mesa. Remove from tgsi translation as well.
2009-09-12 14:15:15 -07:00
Keith Whitwell
6d8dbd3d1e
tgsi/ureg: VS inputs don't have any semantic tags, just an index
...
Fix ureg_DECL_vs_input to reflect this and fix up all callers.
2009-09-12 14:12:35 -07:00
Keith Whitwell
149945c432
tgsi: free tokens on error
2009-09-12 14:07:48 -07:00
Keith Whitwell
e90fb86ac3
tgsi: sanity check ureg programs
2009-09-12 14:05:37 -07:00
Keith Whitwell
983b261e6d
tgsi: add const qualifier
2009-09-12 14:04:36 -07:00
Nicolai Hähnle
3cb30e55e4
r300g: There is no such thing as "texture stride"
...
Individual texture images have a stride, but textures as a whole do not.
There are still pieces of code which are confused about this, but the core of
the confusion is hopefully gone.
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-09-12 16:55:25 +02:00
Eric Anholt
57d16c4cc3
i965: Move OPCODE_DDX/DDY to brw_wm_emit.c and make it actually work.
...
Previously, it was trying to mess around with the varying's
WM setup data to produce a result. Along with not actually working when
passed a varying, this wouldn't work if you did dFd[xy]() on a temporary.
Instead, just calculate the derivative using the neighbors in the subspan.
2009-09-11 14:13:47 -07:00
Andre Maasikas
a79eecb913
r600: fix texcoords from constants
...
with some minor updates from Richard.
2009-09-11 15:59:55 -04:00
Alex Deucher
08b7d32140
Revert "r600: support tex coords from constants"
...
This reverts commit 4099bb7614
.
Tex coord src has to be a GPR.
2009-09-11 12:11:04 -04:00
Cooper Yuan
622b31925b
r300g: only allocate one BO for vertex buffers, default size is 64*1024
...
it can fix redbook/sceneflat, scene, scenebamb, surface, nurbs and so on
2009-09-11 23:21:28 +08:00
Alex Deucher
4099bb7614
r600: support tex coords from constants
...
Fixes neverball among other things.
2009-09-11 11:07:58 -04:00
Andre Maasikas
4108ed7e80
r600: enable caching of vertex programs
2009-09-11 10:59:53 -04:00
José Fonseca
672c5f52d1
llvmpipe: set dirty_render_cache in llvmpipe_clear()
...
Based on Brian's softpipe change on
commit 988db64119
. We don't use the tile
cache for zsbuf though, only for color buffers.
2009-09-11 11:29:24 +01:00
José Fonseca
1fc4100225
llvmpipe: Update status in README and TODO/FIXME comments throughout the code.
2009-09-11 11:24:26 +01:00
Eric Anholt
7c0152fbae
i965: Enable loops in the VS.
...
Passes piglit glsl-vs-loop testcase.
Bug #20171
2009-09-10 20:43:44 -07:00
Brian Paul
0ef5b62787
mesa: nicer vertex setup
2009-09-10 19:56:35 -06:00
Brian Paul
4781c1f459
st/mesa: use st_context() helper
2009-09-10 19:40:53 -06:00
Brian Paul
6bc36f29c7
softpipe: remove no-op softpipe_init_texture_funcs() function
2009-09-10 16:51:52 -06:00
Brian Paul
209031701a
softpipe: remove unused #includes, move comment
2009-09-10 16:50:18 -06:00
Brian Paul
de059d35c3
util: remove unneeded #includes
2009-09-10 16:45:25 -06:00
Brian Paul
afcaa45a94
softpipe: reformatting, clean-ups, comments
2009-09-10 16:42:47 -06:00
Brian Paul
759696defb
util: minor clean-ups, reformatting
2009-09-10 16:39:13 -06:00
Brian Paul
71b3ccc4b0
softpipe: remove unneeded #includes
2009-09-10 16:38:51 -06:00
Ian Romanick
b8e1e8d2d8
Merge branch 'master' into asm-shader-rework-2
...
Conflicts:
src/mesa/shader/lex.yy.c
src/mesa/shader/program_parse.tab.c
src/mesa/shader/program_parse.tab.h
2009-09-10 15:33:45 -07:00
Ian Romanick
81722c5d7e
NV fp parser: Add support for condition codes
...
Conditional write masks and the condition-code based KIL instruction
are all supported. The specific behavior of KIL in the following
shader may or may not match the behavior of other implementations:
!!ARBfp1.0
TEMP GT;
MOVC GT, fragment.texcoord[0];
KIL GT.x;
END
Should be it interpreted as 'KIL srcReg' or as 'KIL ccTest'? The
current parser will interpret it as 'KIL srcReg'.
2009-09-10 15:04:24 -07:00
Ian Romanick
cdb7193994
ARB prog lexer: Add missing #include to silence compile warning
2009-09-10 14:55:36 -07:00
Brian Paul
d9dc4cb0e4
Merge branch 'mesa_7_6_branch'
2009-09-10 15:41:52 -06:00
Zack Rusin
8c37a4c8fd
st/xorg: rename ctx to pipe to match every other gallium state tracker
...
plus it avoids the "ctx->ctx->" syntax
2009-09-10 17:43:25 -04:00
Ian Romanick
0e7953366f
ARB prog parser: Differentiate between used and unused names in the lexer
...
The lexer will return IDENTIFIER only when the name does not have an
associated symbol. Otherwise USED_IDENTIFIER is returned.
2009-09-10 14:35:33 -07:00
Zack Rusin
85a716bf62
st/xorg: temporarily disablie copies
2009-09-10 17:21:06 -04:00
Zack Rusin
feb74e7753
st/xorg: implement pipelines surface/texture copies
2009-09-10 17:21:06 -04:00
Zack Rusin
57d0934bc5
st/xorg: unite finalization and stub out pipelined copies
2009-09-10 17:21:06 -04:00
Zack Rusin
974dec2e7b
st/xorg: abstract flushing and syncing for the exa code
2009-09-10 17:21:06 -04:00
Zack Rusin
16886c8be3
st/xorg: disable solid fills until copies are accelerated as well
2009-09-10 17:21:06 -04:00
Zack Rusin
6be1a98ab9
st/xorg: implement exasolids with full pipelining
...
plus fix some small issues with the shaders
2009-09-10 17:21:06 -04:00
Zack Rusin
3167c2e8a0
st/xorg: start adding support for surface fills
2009-09-10 17:21:06 -04:00
Marcin Kościelnicki
18882f4d30
nv50: Fix tiling mode for lower mipmap levels.
2009-09-10 21:06:48 +02:00
Eric Anholt
36dd53a3cd
intel: Don't forget to map the depth read buffer in spans.
...
This broke BlitFramebufferEXT(GL_DEPTH_BUFFER_BIT).
2009-09-10 11:16:18 -07:00
Alex Deucher
e669dc2b0d
r300: enable rb3d_discard_src_pixel_lte_threshold for more chips on dri2
2009-09-10 12:04:38 -04:00
Alex Deucher
7dfe54a60e
r300: add full support for two sided stencil on r5xx for dri2
2009-09-10 12:01:19 -04:00
Mathias Frohlich
f89751e719
mesa: fix cut&paste typos
2009-09-10 08:50:16 -06:00
Vinson Lee
c7291f69a0
util: Add PIPE_OS_APPLE back to auxiliary/util/u_time.h.
...
Fixes typo from commit c6c44bf481
.
2009-09-10 15:33:57 +01:00
José Fonseca
6a405b4a21
llvmpipe: Fix alpha test.
2009-09-10 13:35:39 +01:00
José Fonseca
4c3a48ad0c
llvmpipe: Mask out color channels not present in the color buffer.
2009-09-10 12:37:44 +01:00
José Fonseca
48f19c0bcd
llvmpipe: Fix sampling from depth textures. Respect texture compare func.
...
Fixes Mesa shadowtex sample.
2009-09-10 12:14:53 +01:00
José Fonseca
c3c80c5c22
llvmpipe: Skip blending when mask is zero.
...
This increases quake3 timedemo fps another 10%.
2009-09-10 12:01:42 +01:00
José Fonseca
8e6b925d2a
llvmpipe: Proper control flow builders.
...
New control flow helper functions which keep track of all variables
and generate the correct Phi functions.
This re-enables skipping the fs execution of quads masked out by
the rasterizer, early z testing, and kill opcode.
This yields a performance improvement of around 20%.
2009-09-10 11:44:03 +01:00
José Fonseca
bd3b59da63
llvmpipe: Copy the texture target into the sampler static state.
...
Hunk forgotten in previous commit.
2009-09-10 09:19:51 +01:00
José Fonseca
4139bc8f43
llvmpipe: Quick hack for 1D textures.
2009-09-09 21:48:50 +01:00
José Fonseca
b0b131b023
scons: Pass -mstackrealign option to gcc.
...
It is impossible to have gcc generate SSE code without it, as thirdparty
applications often call us with an unaligned stack pointer.
2009-09-09 21:48:50 +01:00
José Fonseca
abc160b664
llvmpipe: Fix depth mask computation.
...
Fixes depth test for 24bit depth formats.
2009-09-09 21:48:50 +01:00
José Fonseca
cdbbcdf3bd
llvmpipe: Include zsbuf's format in the fragment shader key.
2009-09-09 21:48:50 +01:00
José Fonseca
da912a7a16
util: Fix depth/stencil format description.
...
Inverse channel order.
2009-09-09 21:48:49 +01:00
José Fonseca
01c831576e
llvmpipe: Debug function to check stack alignment.
...
Doing alignment check in locus is redundant, as gcc alignment assumptions
will optimize away the check.
2009-09-09 21:48:49 +01:00
Eric Anholt
5604b27b93
i965: Fix relocation delta for WM surfaces.
...
This was a regression in 0f328c90db
.
Bug #23688
Bug #23254
2009-09-09 12:52:52 -07:00
Brian Paul
4d85a6b393
i965: fix an overlooked merge conflict
2009-09-09 09:24:38 -06:00
Alex Deucher
49c230709c
r600: check if textures are actually enabled before submission
...
noticed by taiu on IRC.
2009-09-09 11:17:24 -04:00
Brian Paul
7bf6347362
Merge branch 'mesa_7_6_branch'
2009-09-09 09:00:58 -06:00
Brian Paul
94a8157ef6
mesa: regenerate get.c form get_gen.py
2009-09-09 08:55:32 -06:00
Brian Paul
3fed69eb16
mesa: move call to init_c_cliptest() from enable.c to tnl module.
...
Fixed gallium build breakage.
2009-09-09 08:54:38 -06:00
Alex Deucher
da9ed257a3
r600: fix ftp for dri1
...
We use t->bo for dri1 since r600 uses CS for dri1.
2009-09-09 01:43:17 -04:00
Zhenyu Wang
ca246dd186
intel: add B43 chipset support
...
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com >
2009-09-09 13:28:59 +08:00
Dave Airlie
5aaa45de4c
r600: don't setup hardware state if TFP
...
if we have a BO here it means TFP and we should have set it
up already.
tested by b0le on #radeon
2009-09-09 15:02:16 +10:00
Brian Paul
8947cf6728
progs/tests: added Z invert option
2009-09-08 16:47:30 -06:00
Brian Paul
f78eafcacb
mesa: bump version to 7.7
2009-09-08 16:46:06 -06:00
Brian Paul
97cbaab541
gallium: added r8g8b8_get/put_tile_rgba()
2009-09-08 16:45:34 -06:00
Brian Paul
079ae4c38c
progs/demos: added RGB invert option
2009-09-08 16:45:07 -06:00
Brian Paul
126696caf7
mesa: fix viewport_z_clip breakage
2009-09-08 16:44:49 -06:00
Jakob Bornecrantz
e589a37f7b
i915g: Add buffer write callback
2009-09-09 00:43:36 +01:00
Jakob Bornecrantz
d112132840
i915g: Reorg vbuf code a bit
2009-09-09 00:43:36 +01:00
Jakob Bornecrantz
547b726484
i915g: pwrite batchbuffer instead of map
2009-09-09 00:43:36 +01:00
Jakob Bornecrantz
d585616f5b
i915g: Keep vertex buffers in a fifo
2009-09-09 00:43:35 +01:00
Jakob Bornecrantz
6e61d06209
util: Add super simple fifo
2009-09-09 00:43:35 +01:00
Jakob Bornecrantz
3833587818
i915g: Map vertex buffers via gtt
2009-09-09 00:43:35 +01:00
Jakob Bornecrantz
530fbd314e
i915g: Remove lib prefix from driver
2009-09-09 00:43:35 +01:00
Eric Anholt
9fff4b46d3
docs: Add basic 7.7 relnotes.
2009-09-08 15:12:22 -07:00
Eric Anholt
f959ccdfa6
intel: Add support for ARB_draw_elements_base_vertex.
...
On the 965, we just drop the value into the primitive packet. On non-945,
we rely on the sw tnl code handling it.
2009-09-08 15:12:22 -07:00
Eric Anholt
92d7ed8a20
mesa: Add support for ARB_draw_elements_base_vertex.
2009-09-08 15:12:20 -07:00
Eric Anholt
ec9e729580
glapi: Add ARB_draw_elements_base_vertex
2009-09-08 14:48:47 -07:00
Eric Anholt
b11a8ea863
mesa: Expose NV_depth_clamp if ARB_depth_clamp is supported.
...
The wording of these two is exactly the same, except for the issue
"Can fragments with wc<=0 be generated when this extension is supported?",
which idr thinks is a non-issue for us.
2009-09-08 14:30:18 -07:00
Eric Anholt
0310aafd9e
i965: Add support for ARB_depth_clamp.
2009-09-08 14:30:18 -07:00
Eric Anholt
0e5c2598ec
Regenerate files for GL_ARB_depth_clamp.
2009-09-08 14:30:18 -07:00
Eric Anholt
b4922b5331
mesa: Add support for ARB_depth_clamp.
...
This currently doesn't include fixing up the cliptests in the assembly
paths to support ARB_depth_clamp, so enabling depth_clamp forces the C path.
2009-09-08 14:30:15 -07:00
Eric Anholt
3e4539a471
i965: Respect spec requirement for pixel shader computed depth with no zbuffer.
2009-09-08 14:28:23 -07:00
Eric Anholt
15c0cc5cf4
i965: Set NULL WM surfaces as tiled according to requirement by specs.
2009-09-08 14:28:23 -07:00
Eric Anholt
ea6dab2537
i965: Use the renderbuffer surface size instead of region size for WM surfaces.
...
For drawing to lower mipmap levels, the region size makes the renderbuffer
be the size of the lowest level, instead of the current level. On DRI1,
Brian previously found that the RB size was incorrect, so leave this broken
there.
2009-09-08 14:28:23 -07:00
Eric Anholt
58a57e3fc4
Revert "intel: helper to debug bufmgr (disabled)"
...
This reverts commit e0ec405a9f
.
This is already available in INTEL_DEBUG=bufmgr in the environment.
2009-09-08 14:28:23 -07:00
Brian Paul
b2de028523
i965: #include clean-ups
2009-09-08 14:33:47 -06:00
Brian Paul
e61215242b
intel: #include clean-ups
2009-09-08 14:33:47 -06:00
Brian Paul
8e8d3470be
i965: use _mesa_is_bufferobj()
...
Also, remove unneeded call to _mesa_validate_pbo_access(). It's done by
core Mesa as the comment suggested.
2009-09-08 14:33:47 -06:00
Brian Paul
ced699b37a
i965: use _mesa_is_bufferobj()
2009-09-08 14:33:47 -06:00
Brian Paul
abdf2e14bc
i965: use _mesa_is_bufferobj()
2009-09-08 14:33:47 -06:00
Brian Paul
00aac1d29a
i965: use _mesa_is_bufferobj()
2009-09-08 14:33:47 -06:00
Alex Deucher
e6ad286a80
r600: fix dri2 clipping
2009-09-08 16:03:25 -04:00
Michel Dänzer
e34ea368d9
st/xorg: Add support for EXA_MIXED_PIXMAPS and EXA_SUPPORTS_PREPARE_AUX.
...
Also make sure not to leak malloced memory when switching pixmaps to texture
based.
2009-09-08 18:08:24 +02:00
Vinson Lee
2c307c7750
scons: Add Mac OS to target platform list.
2009-09-08 12:32:37 +01:00
Michal Krol
fcb94f6e3e
gdi: Fix prototype of gdi_softpipe_surface_buffer_create().
2009-09-08 10:22:07 +02:00
Vinson Lee
79f48c9f9e
scons: Don't set LLVM_VERSION if one of the llvm-config calls fails.
...
Ubuntu 8.10 has llvm-config version 2.2, which doesn't have
nativecodegen. This triggers an exception.
2009-09-07 15:16:25 +01:00
José Fonseca
b481fb2c6d
llvmpipe: Silent debug statement.
2009-09-07 15:02:08 +01:00
José Fonseca
1127201088
llvmpipe: Better abs for floating points.
2009-09-07 15:02:08 +01:00
José Fonseca
e4c76c02f7
llvmpipe: Code generate the texture sampling inside the shader.
...
Finally a substantial performance improvement: framerates of apps using
texturing tripled, and furthermore, enabling/disabling texturing only
affects around 15% of the framerate, which means the bottleneck is now
somewhere else.
Generated texture sampling code is not complete though -- we always
sample from the base level -- so final figures will be different.
2009-09-07 15:02:08 +01:00
José Fonseca
de8376e2f2
llvmpipe: Texture sampling code generation primitives.
...
Only supports single level 2d textures, with neareast and bilinear
filtering for now.
2009-09-07 15:02:07 +01:00
José Fonseca
0c2ea24338
llvmpipe: Convenience function to obtain the integer type with same bitdepth of an arbitrary type.
2009-09-07 15:02:07 +01:00
José Fonseca
fa0f4b35be
llvmpipe: Utility functions for linear and bilinear interpolation.
2009-09-07 15:02:07 +01:00
José Fonseca
4da20234f3
llvmpipe: Correct implementation of floor.
2009-09-07 15:02:07 +01:00
José Fonseca
b1eff018c7
llvmpipe: Utility function to get the pointer to a structure member.
2009-09-07 15:02:07 +01:00
José Fonseca
866fbacf2b
llvmpipe: SoA pixel unpacking specialization.
2009-09-07 15:02:06 +01:00
José Fonseca
6b129a8222
util: Utility function to check if a number is a power of two.
2009-09-07 15:02:06 +01:00
José Fonseca
8be72bb764
llvmpipe: Further abstract the texture sampling generation from TGSI translation.
2009-09-07 15:02:06 +01:00
Michal Krol
970823978c
mesa: Include <unistd.h> only when one is available.
2009-09-07 09:31:17 +02:00
Michal Krol
826d441cdf
mesa: Fix calling conventions of sync object api callbacks.
2009-09-07 09:16:35 +02:00
Michel Dänzer
617202b578
r300g: Fix some issues pointed out by compiler warnings.
2009-09-06 18:12:14 +02:00
Michel Dänzer
7b8ec0d8e7
r300g: Handle PIPE_BUFFER_USAGE_DONTBLOCK as intended.
...
Return NULL if the BO is busy, otherwise just map it.
2009-09-06 18:12:14 +02:00
Brian Paul
23663ae914
mesa: initial version of _mesa_meta_generate_mipmap()
...
Incomplete and totally untested. Based on intel_generate_mipmap().
2009-09-06 09:39:50 -06:00
Brian Paul
4d63c626d0
xlib: test _mesa_meta_bitmap()
2009-09-06 09:37:30 -06:00
Brian Paul
886e7b318d
mesa: use separate temp texture for bitmaps
2009-09-06 09:37:30 -06:00
Brian Paul
b2951ffe96
mesa: temp_texture changes
2009-09-06 09:37:30 -06:00
Brian Paul
f477fa7a85
mesa: free meta bitmap buffers
2009-09-06 09:37:29 -06:00
Brian Paul
0e5293a240
mesa: use _mesa_set_enable()
2009-09-06 09:37:29 -06:00
Brian Paul
bcb62ae78a
mesa: _mesa_meta_bitmap() function
2009-09-06 09:37:29 -06:00
Brian Paul
4fdc96db1d
xlib: move misplaced brace
2009-09-06 09:37:29 -06:00
Nicolai Hähnle
1ddb22675c
r300g: Fix a number of warnings
...
Seriously guys....
2009-09-06 15:14:22 +02:00
Nicolai Hähnle
4b01e6f614
r300g: Debug flags infrastructure
...
So that debugging is no longer a full-spam-or-nothing approach, you are now
supposed to set the RADEON_DEBUG environment flag just like for classic Mesa.
The available debug flags are different, however. Just running an OpenGL
application with RADEON_DEBUG set to an arbitrary string will print out
helpful information.
Everything must be compiled with -DDEBUG for any of this to work
2009-09-06 15:03:52 +02:00
Nicolai Hähnle
f02f63997c
Merge branch 'master' into r300-compiler
...
Conflicts:
src/gallium/drivers/r300/r300_tgsi_to_rc.c
2009-09-06 13:15:04 +02:00
Nicolai Hähnle
e95e76e125
r300/compiler: New dataflow structures and passes
...
This replaces the old NQSSADCE code with the same functionality, but quite
different design. Instead of doing a single integerated pass, we now build
explicit data structures representing the dataflow.
This will enable analysis of flow control instruction, and could potentially
open an avenue for several dataflow based optimizations, such as peephole
optimization, fusing MUL+ADD to MAD, and so on.
2009-09-06 11:47:40 +02:00
Cooper Yuan
9778731732
r300g: update the value of register VAP_VF_MAX_VTX_INDX
...
according to actual vertex index count.
2009-09-05 20:58:32 +08:00
Cooper Yuan
80ea03bd17
r300g: update rs_block state after changing rasterizer
2009-09-05 14:26:39 +08:00
Cooper Yuan
8f990f928b
r300g: need to validate scissor and viewport state if bind new rasterizer
2009-09-05 10:26:39 +08:00
Ian Romanick
d0adebb8d5
NV fp parser: Support instruction and TEMP / OUTPUT sizes
...
Adds support for declaring TEMP and OUTPUT variables as 'LONG' or
'SHORT' precision. The precision specifiers are parsed, but they are
currently ignored. Some support for this may be added in the future,
but neither Intel hardware nor, as far as I'm aware, Radeon hardware
support multiple precisions.
Also adds support for instruction precision ('X', 'H', and 'R')
suffixes and instruction condition code output ('C') suffix. This
results in a fairly major change to the lexer. Instructions are
matched with all the possible suffix strings. The suffix string are
then carved off by a context (i.e., which program mode and options are
set) aware parser that converts the suffixes to bits in
prog_instruction.
This could have been handled in the same way _SAT was originally
handled in the lexer, but it would have resulted in a very large lexer
with lots of opportunity for cut-and-paste errors.
2009-09-04 17:31:05 -07:00
Ian Romanick
9ea4319744
ARB prog parser: Add new constructor for asm_instruction
...
The new constructor copies fields from the prog_instruction that the
parser expects the lexer to set.
2009-09-04 16:35:50 -07:00
Alex Deucher
9ab19a3900
r600: add support for EXT_texture_sRGB
2009-09-04 18:46:16 -04:00
Alex Deucher
60ca65c016
r300: Add support for GL_EXT_provoking_vertex
2009-09-04 18:46:15 -04:00
Alex Deucher
8fd7586bcc
r600: Add support for GL_EXT_provoking_vertex
2009-09-04 18:46:15 -04:00
Eric Anholt
0612ad4f19
i965: Don't set the complete field when there is more VUE yet to come.
...
This should help with things like lightsmark, but I don't have a testcase
for this commit.
2009-09-04 14:20:09 -07:00
Eric Anholt
a47858e45e
i965: Add support for 2 threads in the GS.
...
This brings noop vertex shader throughput from 6.8M verts/sec to 10.4M
verts/sec using GL_QUADs on my GM45.
2009-09-04 14:20:09 -07:00
Eric Anholt
8f7f22ca1d
i965: Add support for KIL_NV in brw_wm_emit.c
...
I ran into this lack of support when writing a shader that always discarded
the fragments.
2009-09-04 14:20:08 -07:00
Ian Romanick
eeb1402c05
NV fp parser: Add support for absolute value operator on instruction operands
2009-09-03 14:32:48 -07:00
Ian Romanick
5db8ebb8f5
Enable GL_NV_fragment_program_option for software rendering
...
At this point the extension is not fully implemented.
2009-09-03 14:07:07 -07:00
Ian Romanick
b8e389bb03
NV fp parser: Support new scalar constant behavior
...
ARBfp requires scalar constants have a '.x' suffix, but NVfp_option
does not. This shows up with instructions that require a scalar
parameter (e.g., COS).
2009-09-03 14:05:18 -07:00
Ian Romanick
8ca6fd8a83
NV fp parser: Parse TXD instruction
2009-09-01 14:16:03 -07:00
Ian Romanick
ede0cd4d8c
NV fp lexer: Add new opcodes
2009-08-31 17:00:31 -07:00
Ian Romanick
dc8ec05ace
NV fp: Parse 'OPTION NV_fragment_program' in ARB assembly shaders
2009-08-31 16:57:49 -07:00
Ian Romanick
efff7aa980
NV fp: Add tracking for NV_fragment_program_option
2009-08-31 16:43:39 -07:00
Nicolai Hähnle
d1b4351e60
r300: Remove all Mesa dependencies from the shader compiler
...
In particular, this removes the dependency on prog_instruction, which
unfortunately creates some code duplication, but also opens a path towards
adding some hardware-specific things in there.
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-08-30 18:51:46 +02:00
Nicolai Hähnle
d6d71e5bf4
r300: Move Mesa -> RC program conversion to classic Mesa driver
...
This really doesn't belong into the compiler itself, since the compiler
should eventually be independent of Mesa's program representation.
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com >
2009-08-30 17:57:20 +02:00
Keith Whitwell
67d4a5b15c
mesa/swrast: use one fewer divide in swrast's choose_cube_face also
...
Same change as for softpipe
2009-08-24 08:26:33 +01:00
Keith Whitwell
fd19e8adcd
softpipe: use one fewer divide in sample_cube
...
GCC won't do this for us. Makes a bigger difference to cubemap fps
than previous set of compilcated rearrangements.
2009-08-24 08:26:33 +01:00
Keith Whitwell
60adc15ba5
softpipe: separate out 2d and cube img filter functions
2009-08-24 08:26:32 +01:00
Keith Whitwell
81601d85ef
softpipe: make the various get_texel routines more similar
...
Remove arguments, return const float * by default. Add specialized 3d
versions and remove 3d texture support from the others.
2009-08-24 08:26:17 +01:00
Keith Whitwell
75312b6555
progs/demos: add fps output to cubemap
2009-08-23 23:53:41 +01:00
Keith Whitwell
153e474d22
softpipe: lift tex_address construction up to img_filter
...
For fastpaths at least, can avoid recalculating this sometimes.
2009-08-23 13:38:10 +01:00
Keith Whitwell
4fe0fc3eba
softpipe: remove old prim_setup draw stage
...
Everything now goes through the draw_vbuf handler, the same as
regular drivers.
2009-08-23 11:22:41 +01:00
Keith Whitwell
47800c572f
softpipe: add missing header
2009-08-23 11:13:20 +01:00
Keith Whitwell
7670102468
Merge branch 'tex-tilecache' into softpipe-opt
...
Conflicts:
src/gallium/drivers/softpipe/sp_state_derived.c
src/gallium/drivers/softpipe/sp_state_sampler.c
src/gallium/drivers/softpipe/sp_tex_sample.c
src/gallium/drivers/softpipe/sp_tex_sample.h
src/gallium/drivers/softpipe/sp_tile_cache.c
2009-08-23 10:23:46 +01:00
Brian Paul
0f24886f92
softpipe: remove duplicate #include, move another
2009-08-21 14:07:37 -06:00
Brian Paul
d204659c8c
softpipe: remove tex sample dependencies on softpipe
...
The texture sampling code doesn't really have any dependencies on the
rest of softpipe, just the tile cache.
2009-08-21 14:04:51 -06:00
Brian Paul
3adc8c3779
softpipe: minor code refactoring to remove softpipe/tile cache dependencies
...
The tile cache code now has no hard dependencies on softpipe.
2009-08-21 14:01:58 -06:00
Brian Paul
4256c5829f
softpipe: remove unused #includes, white-space clean-up
2009-08-21 13:47:50 -06:00
Brian Paul
46fbc87288
softpipe: remove unneeded const qualifier
2009-08-21 13:45:16 -06:00
Brian Paul
a29447c33d
softpipe: per-unit sampler varients
...
Can't share sampler varients across multiple tex units because the texture
pointer is in the sampler varient. That prevents different textures per unit.
Fixes progs/demos/multiarb, progs/glsl/samplers, etc.
2009-08-21 12:44:04 -06:00
Brian Paul
87ec83afd5
softpipe: add missing PIPE_TEXTURE_CUBE case in get_lambda_func()
...
Fixes progs/demos/cubemap
2009-08-21 11:47:31 -06:00
Keith Whitwell
ecfa8be150
softpipe: add missing sp_sampler_varient_destroy
2009-08-21 18:44:56 +01:00
Brian Paul
cf102b031e
softpipe: remove redundant comparison, make test easier to understand
2009-08-21 11:43:48 -06:00
Brian Paul
41483627f0
softpipe: fix min/mag filter typo
2009-08-21 11:41:29 -06:00
Brian Paul
4e5c385d21
softpipe: fix s/t/p typos
2009-08-21 11:40:33 -06:00
Keith Whitwell
4fc7d0345a
softpipe: rework texture sampling code
...
Split into component pieces, stitch together at runtime using function
pointers. Make it possible to utilize the existing fastpaths as image-level
filters for generic mip-filtering routines.
Remove special case for rectangle filtering, as it can now be handled by
the 2d path.
As most of the mesa demo texturing was already covered by fast paths, its
harder to find examples of speedups, but tunnel gets a boost as mip-nearest
filtering is now able to access the img_2d_linear_wrap_POT functions
for sampling within a mipmap level.
2009-08-21 18:14:19 +01:00
Keith Whitwell
b1cc196e6d
util: add util_is_power_of_two function
2009-08-21 18:07:35 +01:00
Keith Whitwell
00c8359182
softpipe: allow the existing sampler routines to be hooked up directly
...
Let eg. sp_get_samples_rect be hooked directly in as the tgsi sampler
routine.
Add a field to determine whether this is a vertex or fragment sampling
call, and massage parameters to match the tgsi call.
2009-08-20 18:36:57 +01:00
Keith Whitwell
0d9979d9ec
softpipe: fix xpot calculation typo in sp_get_samples_2d_nearest_clamp_POT
2009-08-20 18:13:25 +01:00
Keith Whitwell
1fd40e506c
softpipe: slightly optimized tiling calculation
2009-08-20 18:12:44 +01:00
Keith Whitwell
79a7ddb57a
softpipe: fix glitch in texel lookups on fastpaths
...
Fixes two issues - firstly for mipmap levels with one or more
dimensions smaller than tilesize, the code was sampling off the edge
of the texture (but still within the tile).
Secondly, in the linear_mipmap_linear case, both the default code and
new fastpath were incorrect. This change fixes the fastpath and adds
a comment to the default path, which still needs to be fixed.
Basically the issue is that the coordinates in the smaller texture
level are/were being computed by just dividing thecoordinates from the
larger texture level by two, as in:
x0[j] /= 2;
y0[j] /= 2;
x1[j] /= 2;
y1[j] /= 2;
The issues with this are signficant. Initially x1 is most often equal
to x0+1, but after this, it will likely be equal to x0, so we will not
actually be performing the linear blend within the smaller mipmap.
The fastpath code avoided this (recalculated x1), but was still using
the weighting factors from the larger mipmap level (xw, yw), which
were incorrect.
Change the fastpath code to do two full, independent linear samples of
the two mipmap levels before blending. The default code needs to do
the same thing.
2009-08-20 17:59:39 +01:00
Keith Whitwell
4f409da345
softpipe: optimized path for simple mipmap sampling
...
linear-mip-linear-repeat-POT sampling faspath, provides a very nice
speedup to apps that do this common type of texturing.
Test case: demos/terrain, turn fog off, turn texturing on.
Without patch: 12 fps
With patch: 20 fps.
2009-08-20 11:25:20 +01:00
Keith Whitwell
c84abe36a9
softpipe: fix typo in clear_tile
2009-08-18 16:55:10 +01:00
Keith Whitwell
80c78472ad
softpipe: split texture and surface tile caches
...
These do similar jobs but with largely disjoint code. Will want
to evolve them separately going forward.
2009-08-18 16:55:10 +01:00
Keith Whitwell
d12bae9368
softpipe: move flatshade-first check out of loop
2009-08-18 16:21:12 +01:00
Keith Whitwell
99ec78d946
Revert "softpipe: rearrange blend fastpaths"
...
This reverts commit 1295cf423e
.
The original formulation was easier to understand & work with. Will
revisit this later.
2009-08-11 18:23:28 +01:00
Keith Whitwell
da319095f2
softpipe: reduce textual differences between exec and sse shader paths
...
Unshare one function (setup_pos_vector) as we want to push this code
into the generated shader in the SSE case.
2009-08-11 18:06:16 +01:00
Keith Whitwell
b5c389721a
softpipe: remove gallivm fragment shaders
...
However we do llvm integration, it will be different & more comprehensive
than this.
2009-08-11 18:03:01 +01:00
Keith Whitwell
95f7ed4638
softpipe: setup quad outputs from with fs->run
2009-07-30 11:59:32 +01:00
Keith Whitwell
1295cf423e
softpipe: rearrange blend fastpaths
2009-07-30 11:35:50 +01:00
Keith Whitwell
73a6178a73
softpipe: add depth-lequal z16 path
2009-07-30 11:35:08 +01:00
Keith Whitwell
572c2fb5bb
softpipe: remove unused variable in shade_quad
2009-07-30 11:34:36 +01:00
Keith Whitwell
5fdac2dcea
softpipe: fix off-by-one in nearest texcoord routines
...
Stray '- 0.5' copied from linear versions.
2009-07-27 15:51:15 +01:00
Keith Whitwell
6142de393f
softpipe: example fast paths for simple samplers
...
All these fastpaths are examples of the types of things we'd code-generate
in a more sophisticated version of softpipe.
2009-07-27 12:44:58 +01:00
Keith Whitwell
c611458205
softpipe: fastpath for interpolated z16 less depthtesting
...
Because this is interpolated (ie. early) depth, we can build in an
assumption about the quads emitted by triangle setup, ie that they
are actually linear spans. Interpolate z over those spans in z16
format to save on math & conversion.
2009-07-27 12:11:16 +01:00
Keith Whitwell
1078844d18
softpipe: cope with nr_cbufs == 0
...
Disable blend code when no color buffer
2009-07-27 11:23:51 +01:00
Keith Whitwell
bac8e34c9e
softpipe: move all depth/stencil/alpha pixel processing into one stage
2009-07-27 08:17:45 +01:00
Keith Whitwell
85613cc4f1
softpipe: fix error in scissor state dependencies
2009-07-25 11:01:48 +01:00
Keith Whitwell
ade8984f50
softpipe: cleanup framebuffer state routine slightly
2009-07-25 10:01:06 +01:00
Keith Whitwell
a2f7ab1d15
softpipe: move all color-combine code into sp_quad_blend.c
...
Consolidate the read-modify-write color combining code from
the blend, colormask and output stages.
2009-07-24 20:19:18 +01:00
Keith Whitwell
42f1757189
softpipe: fix typo
2009-07-24 20:18:52 +01:00
Keith Whitwell
333ec94380
softpipe: example fastpaths in blending
2009-07-24 18:46:17 +01:00
Keith Whitwell
a1dbd7aa15
softpipe: actually pass >1 quad from triangle routine
...
First attempt
2009-07-24 18:17:05 +01:00
Keith Whitwell
ab9fb51670
softpipe: expand quad pipeline to process >1 quad at a time
...
This is part one -- we still only pass a single quad down, but
the code can now cope with more. The quads must all be from the same
tile.
2009-07-24 16:49:35 +01:00
Keith Whitwell
6153a1c28f
softpipe: rip out old mulithread support
2009-07-24 16:12:48 +01:00
Keith Whitwell
93a026d4ba
softpipe: avoid flushing depth buffer cache on swapbuffers
...
There's no need to push out depth buffer contents on swapbuffers.
Note that this change doesn't throw away depth buffer changes, it simply
holds them in the cache over calls to swapbuffers. The hope is
that swapbuffers will be followed by a clear() which means in that case
we won't have to write the changes out.
2009-07-23 11:14:39 +01:00
Keith Whitwell
19097907ef
softpipe: also shortcircuit non-texture tile lookups
2009-07-23 09:35:33 +01:00
Keith Whitwell
f911c3b989
softpipe: shortcircuit repeated lookups of the same tile
...
The sp_tile_cache is often called repeatedly to look up the same
tile. Add a cache (to the cache) of the single tile most recently
retreived and make a quick inline check to see if this matches the
subsequent request.
Add a tile_address bitfield struct to make this check easier.
2009-07-22 15:08:42 +01:00
Keith Whitwell
13e2d35764
softpipe: remove unused vars in sp_setup.c
2009-07-22 12:48:01 +01:00
Keith Whitwell
0ed99f4552
softpipe: use bitwise logic to setup quad masks in sp_setup
2009-07-22 12:48:00 +01:00
Keith Whitwell
73e7356385
softpipe: simplify flush_spans
...
No loss of performance, but simpler code.
2009-07-22 12:48:00 +01:00
Keith Whitwell
b5d583efef
softpipe: make some small steps to flush texture cache less frequently
...
No performance gain yet, but the code is a bit cleaner.
2009-07-22 12:48:00 +01:00
Keith Whitwell
07bb026900
gallium/xlib: use XSHM for swapbuffers
...
Makes some difference, but suprisingly little. Barely worth the effort.
2009-07-22 12:47:59 +01:00
Keith Whitwell
0ac879dca7
util: _debug_printf should print even when DEBUG is not defined
...
The leading underscore is meaningful... This function is used by
_warning and _error functions as well as the more common
debug_printf().
debug_printf (without underscore) gets turned off when DEBUG is
disabled, but warning/error messages still use this function to get
their message out.
2009-07-22 12:47:59 +01:00
Keith Whitwell
aa5db68438
softpipe: remove backwards dependency from tilecache to softpipe
...
The tile cache is a utility, it shouldn't know anything about the
entity which is making use of it (ie softpipe).
Remove softpipe parameter to all the tilecache function calls, and
also remove the need to keep a softpipe pointer in the sampler structs.
2009-07-22 12:47:59 +01:00