Commit graph

29951 commits

Author SHA1 Message Date
Chia-I Wu
51b00574a2 st/egl_g3d: Always override flush_frontbuffer.
Instead of letting the native displays install their own version of
flush_frontbuffer, always override the callback with a version that
calls the flush_frontbuffer of the native surface.
2010-01-15 17:42:57 +08:00
Michal Krol
6664a6dd7f st/mesa: Initialise vertex element instance divisor to 0. 2010-01-15 07:52:18 +01:00
Luca Barbieri
f7748d72b4 draw: Add GALLIUM_DUMP_VS environment variable.
Add GALLIUM_DUMP_VS to dump the vertex shader to the console like
GALLIUM_DUMP_FS in softpipe.
2010-01-15 07:30:17 +01:00
Brian Paul
8b29d39e99 progs/trival: updated tri-scissor-tri.c test
The scissor left/right/bottom/top bounds can be moved by pressing
the l/r/b/t and L/R/B/T keys.
2010-01-14 19:22:38 -07:00
Brian Paul
4461442849 llvmpipe: implement scissor testing
The scissor test is implemented as another per-quad operation in
the JIT code.  The four scissor box params are passed via the
lp_jit_context.  In the JIT code we compare the quad's x/y coords
against the clip bounds and create a new in/out mask that's AND'd
with the main quad mask.

Note: we should also do scissor testing in the triangle setup code
to improve efficiency.  That's not done yet.
2010-01-14 19:15:00 -07:00
Brian Paul
ca12e30d97 llvmpipe: minor comment update 2010-01-14 19:08:19 -07:00
Brian Paul
16ecd2f078 llvmpipe: clean-up, fixing up frame dump/debug code 2010-01-14 19:05:55 -07:00
Brian Paul
4f5675e94b gallium/util: added debug_dump_texture() and ppm output
Now we can get dump debug images on Linux too.
2010-01-14 19:04:42 -07:00
Brian Paul
dfd6e762e7 llvmpipe: remove redundant code in llvmpipe_set_blend_color() 2010-01-14 16:21:49 -07:00
Jakob Bornecrantz
877cadb655 r300g: Build driver by default
Do the auto trick that is used for both i915, i965 and svga.
2010-01-14 22:51:25 +00:00
Jakob Bornecrantz
b01ffb12ed Merge branch 'mesa_7_7_branch'
Conflicts:
	src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c
	src/gallium/auxiliary/util/Makefile
	src/gallium/drivers/r300/r300_state_derived.c
2010-01-14 22:31:04 +00:00
Brian Paul
4414a1a73c llvmpipe: assorted clean-ups in texture code 2010-01-14 14:19:16 -07:00
Michal Krol
ffd2848056 gallium: Document drawing commands. 2010-01-14 18:55:52 +01:00
Michal Krol
5184b02b07 Merge branch 'instanced-arrays'
Conflicts:
	src/gallium/drivers/softpipe/sp_draw_arrays.c
2010-01-14 18:11:41 +01:00
Corbin Simpson
1bc77e9931 r300g: Cleanup from last few commits.
Strangely enough, the code solidified pretty quickly.
2010-01-14 09:01:37 -08:00
Łukasz Krotowski
60628c65c9 r300g: Really destroy translated buffer at the end.
Note that indexSize is changed by r300_translate_elts(). Also make sure
it's destroyed on errors.
2010-01-14 09:01:37 -08:00
Brian Paul
7fcfb71931 progs/trivial: test user clip plane in tri-point-line-clipped.c 2010-01-14 09:38:47 -07:00
Brian Paul
0a82692154 progs/trivial: test glPolygonMode(POINT/LINE) with frustum clipping
Note whether the new verts introduced by clipping show up as points
and lines along the edge of the window...
2010-01-14 09:22:30 -07:00
Brian Paul
d6b4655e13 gallium/util: silence warning about array initializers 2010-01-14 09:22:30 -07:00
Chia-I Wu
81430b95d0 egl_g3d: Check if the creation of pipe or st context fails.
It should not return an incomplete EGLContext to the users.
2010-01-14 17:29:48 +08:00
Chia-I Wu
6cb89b23ee st/egl_g3d: Use a sequence number to decide if validation is required.
It is not safe to assume that the native surface has not changed since
the last validation by checking the geometry alone.  Add a sequence
number to "validate" callback for that purpose.  This is inspired by
Luca Barbieri's work.
2010-01-14 17:25:19 +08:00
Vinson Lee
252812bf15 st/mesa: Remove unnecessary header from st_program.c. 2010-01-13 23:28:00 -08:00
Vinson Lee
c109ca9c49 st/mesa: Remove unnecessary header from st_texture.c. 2010-01-13 23:16:05 -08:00
Vinson Lee
6b39e8aeb0 swrast: Remove unnecessary header from s_accum.c. 2010-01-13 23:01:03 -08:00
Vinson Lee
78411881d3 swrast: Remove unnecessary header from s_atifragshader.c. 2010-01-13 22:58:07 -08:00
Vinson Lee
0a70868131 swrast: Remove unnecessary header from s_bitmap.c. 2010-01-13 22:45:54 -08:00
Vinson Lee
886cffb44e swrast: Remove unnecessary headers from s_copypix.c. 2010-01-13 22:43:16 -08:00
Vinson Lee
cf061c24e0 swrast: Remove unnecessary header from s_depth.c. 2010-01-13 22:36:01 -08:00
Vinson Lee
d1631f734a swrast: Remove unnecessary header from s_drawpix.c. 2010-01-13 22:30:04 -08:00
Vinson Lee
f649870c9b swrast: Remove unnecessary header from s_feedback.c. 2010-01-13 22:20:44 -08:00
Corbin Simpson
6a2936b876 gallium/docs: Random things sitting around in my stash. 2010-01-13 20:46:53 -08:00
Corbin Simpson
264e548d86 r300g: Use indices to translate index buffers of ubytes.
progs/redbook/aapoly, among others, works fine now.
2010-01-13 20:44:49 -08:00
Corbin Simpson
8feb27b8ff radeong: Change DRI driver name to radeong. 2010-01-13 18:37:17 -08:00
Corbin Simpson
9bb2b90191 r300g: Disable immediate mode rendering for now.
Will re-enable when the bugs are ironed out.
2010-01-13 18:36:54 -08:00
Brian Paul
2ba1c8189a llvmpipe: use one loop in lp_rast_clear_zstencil()
This is just a tiny bit faster.
2010-01-13 18:58:42 -07:00
Brian Paul
f94a99170e llvmpipe: optimize lp_rast_clear_color() for non-gray colors
This makes a big difference in progs that clear to a non-gray color.
Some demos are 30-50% faster.
2010-01-13 18:54:50 -07:00
Brian Paul
f19f218e7a llvmpipe: minor assorted clean-ups 2010-01-13 18:01:45 -07:00
Brian Paul
bc1b38af71 gallium/draw: s/clipper/clip_stage/ to be consistant with other stages 2010-01-13 17:39:45 -07:00
Brian Paul
c873613403 gallium/draw: whitespace and comments 2010-01-13 17:39:45 -07:00
Brian Paul
ee343feba1 gallium/draw: remove always-true conditional 2010-01-13 17:39:45 -07:00
Brian Paul
8519b244f7 gallium: remove forward struct decl
Other struct types (like pipe_texture) are referenced before they're
defined so no reason to special-case this one.
2010-01-13 17:39:44 -07:00
Jesse Barnes
1cfd769c2e DRI2: don't send DRI2 requests the server doesn't know about
At init time, NULL out the hooks that send the server new requests.
DRI2 never supported these extensions, so this preserves old behavior on
old servers with new Mesa.
2010-01-13 19:01:51 -05:00
Jesse Barnes
62eb28c810 GLX/DRI2: pass X drawable ID instead
These happened to be the same in my testing since I was using apps that
depend on the GLX 1.2 behavior where X and GLX drawables are
interchangeable.
2010-01-13 18:42:55 -05:00
Brian Paul
018b78ad64 llvmpipe: check render targets before other textures 2010-01-13 15:32:55 -07:00
Brian Paul
1287277446 llvmpipe: also check render target textures in lp_setup_is_texture_referenced() 2010-01-13 15:30:42 -07:00
Brian Paul
0b279c5382 llvmpipe: indentation fixes 2010-01-13 15:10:57 -07:00
Brian Paul
db58192cfb llvmpipe: re-get scene pointer after flushing 2010-01-13 15:10:57 -07:00
Brian Paul
d59fe44896 llvmpipe: check for texture usage in all scenes 2010-01-13 15:10:57 -07:00
Brian Paul
a27b12171d llvmpipe: add scene texture referencing code 2010-01-13 15:10:57 -07:00
Brian Paul
592e40aa7b llvmpipe: added scene functions for texture reference counting
When a texture is used in the scene we add it to a list of texture
references.  The lp_scene_is_textured_referenced() function tells
us if a texture is referenced by the scene.
2010-01-13 15:10:57 -07:00