Commit Graph

14869 Commits

Author SHA1 Message Date
Ben Skeggs 58b1bcaa09 nv40: do full swtnl fallback when edge flags present.
This isn't necessary, with some effort we can do this on the hw.  However,
until I encounter something "real" that uses them there's not a lot of
point.
2008-04-28 19:25:40 +10:00
Ben Skeggs 2193578851 nouveau: stub set_edgeflags for all nv pipe drivers 2008-04-27 18:12:14 +10:00
Ben Skeggs 0cca90cea1 Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1 2008-04-27 18:04:50 +10:00
Brian a8e39b6f5a gallium: fix broken SGT, SLE 2008-04-25 19:25:26 -06:00
Brian a94aad297d use PIPE_ARCH_X86 2008-04-25 18:46:29 -06:00
Brian Paul aad9dd14d8 gallium: tweak comments, minor var renaming 2008-04-25 16:27:52 -06:00
Brian Paul 5e3b0d227c gallium: tweak comments, minor var renaming 2008-04-25 16:27:52 -06:00
Brian Paul 1cf1641427 gallium: remove unneeded st->bitmap_texcoord_bias 2008-04-25 16:12:11 -06:00
Brian Paul 332b77b852 gallium: use simple color pass-through fragment shader if textures don't exist
If we run out of texture memory we may not have the texture needed by the
fragment shader.  If this happens, plug in a color passthrough shader.
So instead of crashing, we just don't see the texture.
GL_OUT_OF_MEMORY is raised, of course.
2008-04-25 15:24:07 -06:00
Brian Paul 4c50969334 gallium: added null ptr check 2008-04-25 15:24:07 -06:00
Brian Paul 9b44f5a755 gallium: added a null ptr check 2008-04-25 15:24:07 -06:00
Brian Paul 1437b41d90 gallium: fix typo s/_mesa_unmap_drapix_pbo/_mesa_unmap_drawpix_pbo/ 2008-04-25 14:18:09 -06:00
Brian Paul 149a4175fa gallium: consolidate quad drawing code 2008-04-25 14:18:09 -06:00
Brian Paul b6d8b21cc8 gallium: remove unused st_draw_vertices() 2008-04-25 14:18:09 -06:00
Brian Paul 7dcbbdf353 gallium: use util_draw_vertex_buffer() instead of st_draw_vertices() 2008-04-25 14:18:09 -06:00
José Fonseca 1e71283cce scons: Silent MSVC CRT security warnings. 2008-04-26 01:55:43 +09:00
Brian Paul 3faea292e5 gallium: fix the compressed texture hack in st_texture_image_copy()
Actually, the hack is still there and needs to be revisited, but I get a bit
further with compressed textures now.
2008-04-25 10:34:42 -06:00
José Fonseca 658f5e7213 scons: A few fixes for building mesa on windows. 2008-04-26 01:14:52 +09:00
Keith Whitwell 1aedbf9efe draw: emit extra flags whenever pipeline is active
The assert was in fact over-sensitive, but emitting the extra flags
is pretty trivial & we may as well just do it whenever we know the
pipeline is running.
2008-04-25 16:16:14 +01:00
Michel Dänzer 3c0dc8242b gallium: Use util_blit_pixels() for glCopyTexSubImage when appropriate. 2008-04-25 15:01:09 +01:00
Michel Dänzer 96cfd804f6 gallium: Add draw_pt_varray.c to scons build. 2008-04-25 14:57:50 +01:00
Keith Whitwell 2325d19597 tgsi: fix compile when HIGH_PRECISION not defined 2008-04-25 14:20:26 +01:00
Keith Whitwell 14cfcb1820 draw: no need to special-case elts/get_elts for varray frontend 2008-04-25 14:20:25 +01:00
Keith Whitwell 4e46e6f52b draw: remove unused vars 2008-04-25 14:20:25 +01:00
Zack Rusin 992d0b997f frontend for rendering without elts 2008-04-25 14:20:25 +01:00
José Fonseca a7ce6d3992 scons: More windows userspace fixes. 2008-04-25 19:56:44 +09:00
Michel Dänzer d7b523b46b gallium: Tell the driver the texture is updated when we finish rendering to it. 2008-04-25 10:34:20 +01:00
José Fonseca b06cd4debf gallium: Windows user mode portability fixes. 2008-04-25 18:19:51 +09:00
José Fonseca dacfef1589 gallium: New configuration header.
To abstract all those weird #ifdef (__???__) checks.

It should typically be the first included header.
2008-04-25 18:18:48 +09:00
José Fonseca 35460fc91c scons: Teach scons about user-land windows.
Actually, more like get rid of all our hacks when compiling for
user-land windows.

Only MSVC is supported atm though.
2008-04-25 18:16:25 +09:00
Brian Paul b4c7a48d5c gallium: fix an edgeflags crash 2008-04-24 16:40:08 -06:00
Keith Whitwell 2926e59e4a draw: remove old assignment of edgeflag value 2008-04-24 23:31:35 +01:00
Brian Paul ef683014dd gallium: initial edgeflags code 2008-04-24 16:01:18 -06:00
Brian Paul 9816531862 gallium: plug in softpipe_set_edgeflags() function 2008-04-24 15:59:08 -06:00
Brian Paul 909894e34c gallium: comments 2008-04-24 15:58:46 -06:00
Keith Whitwell da8312a1cf draw: default edgeflag should be one 2008-04-24 21:14:23 +01:00
Brian Paul bceebffc17 gallium: disable the bitmap/texcoord bias
Doesn't seem to be needed after fixing the float->int conversion problem.
2008-04-24 13:44:40 -06:00
Brian Paul 72c8d2f244 mesa: adjust glBitmap coords by a small epsilon
Fixes problem with bitmaps jumping around by one pixel depending on window
size.  The rasterpos is often X.9999 instead of X+1.
Run progs/redbook/drawf and resize window to check.
2008-04-24 13:36:26 -06:00
Brian Paul a770d40c3d gallium: use cso_destroy_vertex/fragment_shader() functions
Also, rearrange the st_destroy_context() code a bit to prevent some
invalid/NULL ptr derefs during tear-down.
2008-04-24 12:15:05 -06:00
Brian Paul 386102c62a gallium: make cso_release_all() public 2008-04-24 12:15:05 -06:00
Brian Paul a41804909d gallium: minor clean-ups, comments 2008-04-24 12:15:05 -06:00
Brian Paul ac79532a15 gallium: tweak the new shader delete funcs 2008-04-24 12:15:05 -06:00
Brian Paul f2c3125716 gallium: added cso_delete_vertex_fragment_shader() functions
The state tracker now uses these functions to free shaders, rather than
the pipe->delete_vs/fs-state() functions.  Before, we could get in a situation
where we free() a shader and happen to alloc() a new one at the same address.
The cso_set_vertex/fragment_shader() function would no-op the state change
since the pointers were the same.  This led to problems elsewhere, of course.

The new delete functions null-out the CSO's current shader pointers.
2008-04-24 12:15:05 -06:00
Michel Dänzer 35dc003c6a gallium: Make sure the size of non-existent storage components is set to 0.
Before adding support for formats with unused storage components, the size of
components swizzled to 0 or 1 was ignored, so this didn't matter.
2008-04-24 18:42:35 +01:00
Jakob Bornecrantz cefa367b5d i915: Fix for wrong texture in texobj with VBUF 2008-04-24 17:10:11 +02:00
Michal Krol d712eea074 translate: Actually return a value from translate_cache_create(). 2008-04-24 14:05:39 +02:00
Keith Whitwell 63e6e33db6 trivial: simple edgeflag test 2008-04-24 12:39:09 +01:00
Keith Whitwell f93332da56 draw: handle edgeflags and reset-line-stipple again 2008-04-24 12:39:09 +01:00
Keith Whitwell dddedd915a xlib: only shortcircuit makecurrent if NO_RAST set, otherwise window size updates fail 2008-04-24 12:39:08 +01:00
Michel Dänzer 7333578d2a gallium: Initial support for pixel formats with unused storage components.
Also clarify that RGB formats with no (used) alpha component are treated as
having alpha = 1.0.
2008-04-24 10:18:34 +01:00