Commit graph

28180 commits

Author SHA1 Message Date
Brian Paul
8468234bfa st/mesa: fix up comment 2009-12-07 08:59:38 -07:00
Brian Paul
8796dbf519 progs/glsl: added texture mapping to bump demo
Press 't' to toggle texture map.
2009-12-07 07:46:02 -07:00
Corbin Simpson
12981589b7 radeong: Automatically softpipe for non-r3xx.
Well, technically non-r[345]xx. At any rate...

$ glxgears
libGL: OpenDriver: trying /home/simpson/mesa/lib/gallium/r600_dri.so
131 frames in 5.0 seconds = 26.107 FPS

I'm sure you can see where this is going. :3
2009-12-06 23:55:58 -08:00
Corbin Simpson
e3a3ca097c radeong: Call softpipe_create directly.
Allows us to finally remove radeon_winsys_softpipe.
2009-12-06 23:50:31 -08:00
Corbin Simpson
d8d8b0d244 softpipe: sp_winsys.h should define/include what it needs. 2009-12-06 23:49:02 -08:00
Corbin Simpson
c99fb991a3 r300g: Clean up previous commit.
If *I* can't read it, there's a strong possibility others can't,
either.
2009-12-06 23:34:53 -08:00
Marek Olšák
7091afed78 r300g: enhance ZTOP conditions 2009-12-06 23:34:53 -08:00
Younes Manton
c574f515f0 nouveau: Work around nv04-nv40 miptrees not matching nouveau_miptree.
Thanks to Bob Gleitsmann for the patch.

I'll clean this up in a better way later if noone else beats me to it.
2009-12-06 12:34:27 -05:00
Marek Olšák
0748764351 r300g: don't render if everything is culled by scissoring
Otherwise a CS is refused by kernel 2.6.31 (and maybe all later
versions, not sure).
2009-12-06 01:13:37 -08:00
Marek Olšák
e1380cae88 r300g: remove redundant code and clean up 2009-12-06 01:13:36 -08:00
Alex Deucher
df02bc42b3 radeon/r200/r600: fix drivers for changes in 433f0a82f5 2009-12-05 18:24:41 -05:00
Younes Manton
cbb7226a4b st/xvmc: No more pf_get_block(). 2009-12-05 13:19:54 -05:00
Michel Dänzer
56a4342a04 r300g: Need to emit a hardware scissor rectangle even if scissor is disabled.
Just make it cover the whole framebuffer in that case. Otherwise the kernel CS
checker may complain, e.g. running progs/demos/gearbox. That runs fast now
here, but doesn't look right yet.
2009-12-05 17:59:49 +01:00
Michel Dänzer
01537a84df st/mesa: Prefer alpha-less formats for RGB textures.
This can e.g. increase the chance of being able to accelerate
glCopyTex(Sub)Image from an alpha-less renderbuffer.
2009-12-05 17:59:49 +01:00
Michel Dänzer
d13c603e37 Add 'texture leak' test. 2009-12-05 17:59:49 +01:00
Michel Dänzer
433f0a82f5 radeon: Only get DRI2 front buffer information for glXBindTexImageEXT. 2009-12-05 17:54:23 +01:00
José Fonseca
5b1a7843f8 svga: Dump SVGA_3D_CMD_BLIT_SURFACE_TO_SCREEN commands. 2009-12-05 06:34:59 +00:00
José Fonseca
781d8fccba svga: Use _debug_printf, so that output may be dumped in release builds too.
The dump calls should be wrapped in #ifdef DEBUG .. #endif.
2009-12-05 06:05:56 +00:00
José Fonseca
501989bbcd llvmpipe: Tweak disassembly to match gdb.
Helps verifying udis86 output.
2009-12-05 05:43:53 +00:00
José Fonseca
dd51b4f909 llvmpipe: Stop disassembling when an unsupported opcode is found.
Otherwise the terminal gets full of garbage.
2009-12-05 05:43:10 +00:00
José Fonseca
c0a13bbae1 llvmpipe: Port vertex sampler support from softpipe.
Just enough boilerplate code to avoid segfaulting.
2009-12-04 21:27:03 +00:00
José Fonseca
a312e76468 llvmpipe: Ensure transfers are mapped.
This shouldn't happen but it does by some misterious reason. Fail the
assertion but at least do not segfault on release builds.
2009-12-04 21:27:03 +00:00
José Fonseca
b00b06b6e4 llvmpipe: Remove debug printf. 2009-12-04 21:27:03 +00:00
José Fonseca
818fd6b101 gallium: Disable force_align_arg_pointer attribute on x86_64.
Apparently not only unnecessary but also causes gcc to complain.
2009-12-04 21:27:03 +00:00
Marek Olšák
042b524d48 radeong: flush CS if a buffer being mapped is referenced by it
Also, overlapping occlusion queries seems to work now.
2009-12-04 09:23:59 -08:00
Marek Olšák
7679447b58 r300g, radeong: fix the CS overflow 2009-12-04 09:23:59 -08:00
Marek Olšák
3da8265cd3 r300g: fix warnings 2009-12-04 09:23:59 -08:00
Keith Whitwell
6bb415f862 softpipe: dont claim to support PIPE_FORMAT_NONE 2009-12-04 14:15:21 +00:00
Keith Whitwell
a4b3bb12d7 softpipe: fix double-minify in texture layout 2009-12-04 11:49:42 +00:00
Roland Scheidegger
9dfbd1be44 vega: fix missing include 2009-12-04 00:42:53 +01:00
Roland Scheidegger
9c6a9363ef Merge branch 'gallium-noblocks'
Conflicts:
	src/gallium/state_trackers/xorg/xorg_exa.c
2009-12-04 00:35:14 +01:00
Roland Scheidegger
94b5c28a98 gallium: adapt nv drivers to interface cleanups 2009-12-02 16:55:33 +01:00
Jakob Bornecrantz
cc8a537c57 Merge branch 'mesa_7_7_branch' 2009-12-02 14:56:56 +01:00
José Fonseca
7fc75ef7d4 util: Fix generated swizzle comments. 2009-12-03 18:19:43 +00:00
Michal Krol
cdb6849fc1 tgsi/ureg: Fix ureg_emit_src(). 2009-12-03 09:13:52 +01:00
Corbin Simpson
ab7e70fabd radeong: Clean up some bad code. 2009-12-02 12:58:15 -08:00
Corbin Simpson
f79028bbd4 radeong: Add helper to determine pipe driver. 2009-12-02 12:58:15 -08:00
Corbin Simpson
4395d35c8a radeong: Do ioctls before selecting pipe driver. 2009-12-02 12:58:15 -08:00
Corbin Simpson
4f77b0103d r300g, radeong: De-specialize r300_winsys into radeon_winsys.
There's like five good reasons for this, I swear.
2009-12-02 12:58:15 -08:00
Corbin Simpson
dad193d516 radeong: Change ioctl order, document it. 2009-12-02 12:58:14 -08:00
Corbin Simpson
08383af4c7 r300g: No vertex textures here. 2009-12-02 12:58:14 -08:00
Brian Paul
debc0b6fa8 cso: check if pipe_context::bind_vertex_sampler_states is non-null
Fixes segfaults upon exit when the CSO module is releasing its objects.
2009-12-02 12:24:27 -07:00
Brian Paul
d5e5909f17 Revert "llvmpipe: plug in dummy pipe_context::set_vertex_sampler_textures function"
This reverts commit 792888121b.

We're instead returning 0 for the PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS query.
2009-12-02 12:20:15 -07:00
Brian Paul
f42192e783 llvmpipe: return 0 for PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS query
The driver (and draw module) don't support vertex shader textures yet.
2009-12-02 12:19:33 -07:00
Brian Paul
792888121b llvmpipe: plug in dummy pipe_context::set_vertex_sampler_textures function
Fixes immediate segfault.
2009-12-02 10:11:05 -07:00
Brian Paul
429bf75417 cell: fix TGSI breakage 2009-12-02 09:23:37 -07:00
Brian Paul
144afacc6f gallium/util: __builtin_bswap32() is in only gcc 4.3 or later 2009-12-02 09:23:15 -07:00
Brian Paul
f6d5e58427 gallium/util: added PIPE_CC_GCC_VERSION symbol 2009-12-02 09:22:42 -07:00
Jakob Bornecrantz
0c75854cc1 Merge commit 'mesa_7_6_branch' into mesa_7_7_branch
Conflicts:
	src/mesa/main/version.h
2009-12-02 14:52:51 +01:00
Alex Deucher
2b5618fc5b r200: fix polygon stipple
fixes fdo bug 25354

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-12-03 11:20:40 -05:00