Chia-I Wu
5e66d18932
egl: Move context functions in egldisplay.[ch] to eglcontext.[ch].
...
Move functions to where they should be. There should be no real change
here.
2010-01-24 20:38:15 +08:00
Chia-I Wu
7be4d6b5f7
mesa/es: Improve Makefile rules.
...
Make sure glapi headers are cleaned when "make clean". Make sure all
sources depend on subdirs-stamp-tmp so that sources/headers are
generated first.
subdirs-stamp-tmp will be removed after a successful build. It might be
a problem when a build fails. But it is much better than where we
currently are: glapi headers are never cleaned or re-generated.
2010-01-24 20:15:25 +08:00
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
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
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
Dave Airlie
3b002c9f75
r300: fix wrong call in last commit
2010-01-23 20:07:08 +10: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
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
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
Brian Paul
3c31b1b6d1
gallium/draw: replace int with boolean
2010-01-22 08:08:45 -07:00
Ruediger Oertel
96280c2a41
Fix PowerPC related typo in spantmp2.h
...
Signed-off-by: Matthias Hopf <mhopf@suse.de>
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-01-22 08:07:41 -07:00
Andre Maasikas
69e26a08c6
r600: enable sampler lod* bits
...
bits, settings derived from testing, might contain some errors...
2010-01-22 16:57:47 +02:00
Andre Maasikas
70ccca4251
r600: update vport z & clipping when depth_clamp is changed
...
fixes piglit depth_clamp
2010-01-22 14:14:01 +02:00
Andre Maasikas
9bf40cea00
r600: fix brownbag, only align if we are dealing with cubemap
2010-01-22 13:49:12 +02:00
Andre Maasikas
714d9c21ec
r600: cubemap levels seem to be aligned to 8 images
2010-01-22 13:33:15 +02:00
Andre Maasikas
278ad74fe0
radeon/fbo: flush rendering before generating mipmaps
...
or maybe should flush(also) in finish_render_texture...
2010-01-22 12:58:27 +02:00
Andre Maasikas
7c6f51cdcc
radeon/fbo: use correct depth texture offset for depth textures
2010-01-22 12:38:34 +02:00
Andre Maasikas
defd45e95e
r600: enable draw_offset
...
fixes some fbo cases (mipmaps, cube textures ..)
2010-01-22 12:38:19 +02:00
Chia-I Wu
cec2eeb33e
docs: Update sourcetree.html for EGL and the state trackers.
2010-01-22 18:10:52 +08:00