Dave Airlie
e9bb06441e
r300g: avoid the use of goto
...
I was being lazy on Sunday morning, Droste on irc called me on it ;-)
2010-01-24 15:37:23 +10:00
Vinson Lee
d57ba16ae3
scons: Define _DARWIN_C_SOURCE on Darwin builds.
2010-01-23 21:05:58 -08:00
Dave Airlie
232ddfec24
r300g: fix flushing harder.
...
I swear ipers runs here after this commit.
After we flush we need to redo the space check
2010-01-24 15:00:06 +10:00
Vinson Lee
7f2f42dd80
progs/demos: Remove unnecessary header from shadowtex.c.
2010-01-23 20:56:49 -08:00
Vinson Lee
b62b524fee
r300: Remove unnecessary headers.
2010-01-23 20:43:27 -08:00
Vinson Lee
fb6bff3712
intel: Remove unnecessary headers.
2010-01-23 14:33:29 -08:00
Chia-I Wu
28c3e57c83
egl: Install drivers to ${libdir}/egl.
...
Install EGL drivers to EGL_DRIVER_INSTALL_DIR, which is default to
${libdir}/egl.
2010-01-23 20:30:11 +08:00
Chia-I Wu
6c4431c092
st/vega: Clean up Makefile.
2010-01-23 20:15:28 +08:00
Chia-I Wu
60cd2449f8
st/es: Pass -linker and -ldflags to mklib.
2010-01-23 20:15:24 +08:00
Vinson Lee
146a77af3f
radeon: Remove unused variable.
2010-01-23 02:14:56 -08:00
Dave Airlie
3b002c9f75
r300: fix wrong call in last commit
2010-01-23 20:07:08 +10:00
Vinson Lee
4bad0aef40
tdfx: Remove unnecessary headers.
2010-01-23 01:54:53 -08:00
Vinson Lee
283d9565bf
sis: Remove unnecessary headers.
2010-01-23 01:40:44 -08:00
Dave Airlie
76bc66b664
r300g: fix up buffer emission ordering.
...
This fixes the code space checking VBOs, then resetting the space list
and space checking other buffers. it fixes demos/ipers
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-01-23 19:35:42 +10:00
Vinson Lee
09a142e5db
savage: Remove unnecessary headers.
2010-01-23 00:38:14 -08:00
Vinson Lee
ca54a5b920
mga: Remove unnecessary headers.
2010-01-23 00:19:29 -08:00
Vinson Lee
634ec5c2ab
i965: Remove unnecessary headers.
2010-01-22 23:53:39 -08:00
Vinson Lee
329c1b5910
i915: Remove unnecessary headers.
2010-01-22 23:22:16 -08:00
Dave Airlie
9a62f0ce3b
r300: only enable half floats on r500s.
...
Thank to MAD for point it out.
2010-01-23 12:57:51 +10:00
Dave Airlie
782b6885c2
Merge branch 'arb_half_float_vertex'
2010-01-23 12:29:33 +10:00
Chia-I Wu
0928418922
Revert "add segl"
...
This reverts commit fe33b7083b . It was
not supposed to be pushed yet.
2010-01-23 10:33:03 +08:00
Dave Airlie
d82b8038fd
r300: half float support
...
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-01-23 12:28:33 +10:00
Dave Airlie
96f2f0daea
i965: add support for ARB_half_float_vertex
...
enables the extension on i965 and adds support to the draw upload for
the vertex format.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-01-23 12:28:32 +10:00
Dave Airlie
cfe884e203
mesa: add core support for ARB_half_float_vertex.
...
Adds the extension to the list + support to the APIs.
also add t_draw.c support to convert for sw rast.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-01-23 12:28:32 +10:00
Dave Airlie
1ac5fd594a
glapi: add GL_HALF_FLOAT enum support.
...
Regenerate enums files and GLX indirect.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-01-23 12:28:32 +10:00
Dave Airlie
dcaf6687e8
progs: add trivial ARB_half_float_vertex support.
...
This is just a trivial port of vp-array.c
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-01-23 12:28:28 +10:00
Chia-I Wu
4b770d1a11
glapi: Include glheader.h in glapi_nop.c.
...
In addition to OpenGL headers, glheader.h also defines OpenGL ES types
that are used in core Mesa or ES overlay.
2010-01-23 10:24:49 +08:00
Chia-I Wu
fe33b7083b
add segl
2010-01-23 10:10:47 +08:00
Brian Paul
2292c93bc0
glapi: define GLfixed, GLclampx types for ES 1
...
I'm not 100% sure this is the best fix, but it seems OK.
2010-01-22 18:47:25 -07:00
Brian Paul
f6a49ac217
svga: fix up breakage from earlier 7.7 merge
2010-01-22 18:35:36 -07:00
Brian Paul
46c7cd665c
st/mesa: fix incorrect freeing of drawpixels vertex shaders
...
These shaders are not st_vertex_shaders, but tgsi ureg shaders.
Fixes fd.o bug 25959.
2010-01-22 17:56:37 -07:00
Brian Paul
dd618a006a
gallium/util: add missing util/u_bitmask.c to Makefile
2010-01-22 17:20:37 -07:00
Brian Paul
5e78903952
gallium/util: fix incorrect shift in a4r4g4b4_put_tile_rgba()
...
Fixes fd.o bug 23313.
2010-01-22 17:17:05 -07:00
Brian Paul
b23b13b690
mesa: use memcpy() in _mesa_ProgramEnv/LocalParameters4fvEXT()
2010-01-22 16:24:15 -07:00
Brian Paul
ffe4e2a667
mesa: use switch in _mesa_DeletePrograms()
2010-01-22 16:18:56 -07:00
Brian Paul
7b5ad23c7f
Merge branch 'mesa_7_7_branch'
...
Conflicts:
src/mesa/shader/prog_execute.c
2010-01-22 16:09:03 -07:00
Brian Paul
099e8ec54d
mesa: re-implement _mesa_ProgramEnvParameter4fvARB() with memcpy()
...
This is faster and ensures that NaN floats get stored properly.
Before, NaN values (which might be used with UP2H, UP2US, UP4B and
UP4UB) weren't getting stored properly with gcc -O3.
This is the second part of the fix for the piglit fp-unpack-01 failure
(bug 25973).
2010-01-22 15:41:11 -07:00
Brian Paul
8d1a01d370
mesa: use new fetch_vector1ui() function for 'unpack' GPU instructions
...
The UP2H, UP2US, UP4B and UP4UB instructions interpret the float
registers as integers. With gcc -O3 some bits were getting mixed up
somewhere. This is part of the fix for the piglit fp-unpack-01 test
failure (bug 25973).
2010-01-22 15:36:38 -07:00
Brian Paul
efde2df114
xlib/softpipe: more buffer free fixes
...
The previous memory leak fix didn't always work properly.
Now check the xm_buffer::smh field (now documented!) to
see if the buffer points to shared memory.
2010-01-22 13:07:07 -07:00
Alan Hourihane
d88b219cf3
Remove obsolete file
2010-01-22 19:33:04 +00:00
Brian Paul
1e4b81267c
gallium/aux: re-add pb_buffer_fenced.[ch] accidentally remove during merge
2010-01-22 12:27:25 -07:00
Brian Paul
cd8614b028
Merge branch 'mesa_7_7_branch'
...
Conflicts:
src/gallium/auxiliary/draw/draw_context.c
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
src/gallium/auxiliary/pipebuffer/Makefile
src/gallium/auxiliary/pipebuffer/SConscript
src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c
src/gallium/auxiliary/tgsi/tgsi_scan.c
src/gallium/drivers/i915/i915_surface.c
src/gallium/drivers/i915/i915_texture.c
src/gallium/drivers/llvmpipe/lp_setup.c
src/gallium/drivers/llvmpipe/lp_tex_sample_c.c
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/softpipe/sp_prim_vbuf.c
src/gallium/state_trackers/xorg/xorg_dri2.c
src/gallium/winsys/drm/intel/gem/intel_drm_api.c
src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c
src/gallium/winsys/drm/radeon/core/radeon_drm.c
src/gallium/winsys/drm/vmware/core/vmw_screen_dri.c
src/mesa/state_tracker/st_cb_clear.c
2010-01-22 12:17:02 -07:00
Brian Paul
64871747bb
gallium/draw: apply DRAW_PIPE_FLAG_MASK to all vertex elements
...
Depending on first/last provoking vertex either the first or last
element/index may have the extra DRAW_PIPE_x flags. Mask off those
bits for all vertex elements to be safe (esp. for the quad case).
This may be overly cautious, but it's a cheap operation.
Fixes a segfault caused by large/bogus vertex indexes otherwise.
2010-01-22 11:49:51 -07:00
Brian Paul
5ab0d49a07
gallium/draw: added comments, whitespace fixes
2010-01-22 11:39:19 -07:00
Alan Coopersmith
2b20b60427
mesa: Add "shader/" path to #include statements in shader parser/lexer sources
...
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Note sure why the compiler's -I paths aren't doing the job, but this is OK.
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-01-22 10:38:06 -07:00
Brian Paul
e4f168a6f4
glapi: clean-up and simplify glapi_nop.c code
...
Removed _glapi_noop_enable_warnings() and _glapi_set_warning_func().
Just check the DEBUG env vars and call fprintf(stderr) with a warning
message instead.
2010-01-22 09:56:55 -07:00
Brian Paul
126aff18aa
glapi: split the no-op dispatch code into new glapi_nop.c file
...
This unclutters the glapi.c file a bit.
2010-01-22 09:32:12 -07:00
Brian Paul
ea5918be0e
glapi: fix int->pointer conversions warnings in no-op functions
2010-01-22 08:15:14 -07:00
Brian Paul
2f1a49e335
progs/xdemos: add z/Z keys for scaling the rendering
2010-01-22 08:08:45 -07:00
Brian Paul
5023a7f53f
gallium/draw: fix-up comments, whitespace
2010-01-22 08:08:45 -07:00