Christoph Bumiller
b3ac75f7eb
nv50: make address reg allocation a little less hacky
...
Before I tried to distinguish int +0 and -0, and regs
relative to $a1 would have been considered reserved
for TGSI.
This would probably never occur, let it be fixed even so.
2009-12-20 14:15:51 +01:00
Christoph Bumiller
2ed083dda9
nv50: use BREAKADDR and BREAK for loops
...
This is easier, we don't have to record all the BRK branches
to fill in the address at ENDLOOP - which wasn't done before
and thus made all but the last BRK branch jump to the start.
Also, we don't risk reactivting threads that already left
the loop if we join threads after a conditional with a BRK
(although it might be wiser to remove the join altogether
in such cases).
2009-12-20 14:15:51 +01:00
Christoph Bumiller
3c7f109d67
nv50: handle TGSI_OPCODE_RET,KILP
2009-12-20 14:15:51 +01:00
Vinson Lee
0dd9513874
progs/tests: Silence compiler warnings.
2009-12-20 01:01:00 -08:00
Marek Olšák
6ba83cd63f
r300g: add texture compare modes
2009-12-19 23:54:53 -08:00
Roland Scheidegger
420ff89067
gallium: don't use edgeflags if the app didn't supply them
2009-12-19 20:25:43 +01:00
Roland Scheidegger
1aba413a70
gallium: fix not generating new vp varient when polygon mode changes
2009-12-19 17:12:14 +01:00
Maciej Cencora
4b6dee0865
r300: minor blit rework
...
Use vert/tex coords instead of byte offsets for specyfing src/dst image offsets.
This will allow for blitting between tiled/untiled buffers.
2009-12-19 14:43:08 +01:00
Maciej Cencora
a1428868a6
r300: better fix for glCopyTexSubImage
2009-12-19 14:43:08 +01:00
Vinson Lee
d87d71036c
progs/trivial: Use C-style comments.
2009-12-19 00:28:01 -08:00
Vinson Lee
3340fd65fb
progs/xdemos: Use C-style comment.
2009-12-19 00:00:56 -08:00
Vinson Lee
695adf41e2
progs/demos: Silence compiler warning in morph3d.c.
2009-12-18 23:46:14 -08:00
Vinson Lee
121ff55d81
progs/glsl: Use C-style comments.
2009-12-18 23:38:15 -08:00
Vinson Lee
41377942d3
progs/demos: Use C-style comment.
2009-12-18 23:34:28 -08:00
Corbin Simpson
759fd1f25f
r300g: Fix provoking vertex for non-quads.
...
Read the comments. In short, we can't possibly pass piglit's
glean/clipFlat without some help from Gallium and an API/spec change.
2009-12-18 21:50:45 -08:00
Corbin Simpson
f13a904c34
r300g: Respect provoking vertex for trifans.
...
Fixes part of piglit's clipFlat test; next up is to get quads right.
2009-12-18 19:49:14 -08:00
Roland Scheidegger
429f0e3b37
gallium: fix up drivers for edgeflag changes
...
several drivers which chose to ignore edgeflags might require some more work,
while edgeflags never worked there they might now crash.
2009-12-19 00:18:43 +01:00
Roland Scheidegger
ff5b0c72db
gallium: store edgflag info in tgsi_shader_info
...
provides easier access for drivers which may base fallback decision on this
2009-12-18 23:53:25 +01:00
Corbin Simpson
bf611cef29
r300g: Eliminate a couple more asserts.
2009-12-18 14:07:12 -08:00
Corbin Simpson
62afcbb233
r300g: Nuke r300_vbo.
2009-12-18 14:07:12 -08:00
Brian Paul
263f4322e7
progs/demos: fix glut initialization calls
...
Remove glutInitWindowPosition() calls to play nicer with window managers.
Move glutInitWindowSize() calls before glutInit() so the the default window
size can be overridden by the -geometry cmd line option.
2009-12-18 13:58:14 -07:00
Brian Paul
0478b745fe
glsl: clear out shader code before compiling
...
When we start compiling a shader, first free the existing gl_program.
This (mostly) fixes the piglit glsl-reload-source test.
Without this change, we were actually appending the new GPU code
onto the previous program.
2009-12-18 11:57:17 -07:00
Alex Deucher
c8de081dc1
radeon: protect fbo allocation message with debug
...
fixes fdo bug 25708
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-12-18 10:57:37 -05:00
Roland Scheidegger
9d938e29f2
fix debug output mising from edgeflag changes
2009-12-18 16:09:32 +01:00
Roland Scheidegger
890809d71b
gallium: fix mesa to tgsi translation for edgeflags
...
test apps (progs/trivial/tri-edgeflags and similar) seem to work now
2009-12-18 15:54:28 +01:00
Michal Krol
c35e5c19e7
util: Add util_format_has_alpha(), enclose in extern C.
2009-12-18 14:15:21 +01:00
Michal Krol
b1580a1623
util/pack: Handle the remaining formats with generic u_format access functions.
2009-12-18 13:06:10 +01:00
Corbin Simpson
f874da422b
util: Update blitter for u_format changes.
...
:T
2009-12-18 03:20:19 -08:00
Corbin Simpson
a70eba5648
Revert "r300g: flush CS if a buffer being deleted is referenced by it"
...
As requested by just about everybody. I'm going back to actually reading
patches before ACKing and pushing them.
This reverts commit 417ce06306 .
Conflicts:
src/gallium/winsys/drm/radeon/core/radeon_buffer.c
2009-12-18 02:55:28 -08:00
Michal Krol
7855fcb63b
Merge branch 'pipe-format-simplify'
2009-12-18 09:08:26 +01:00
Richard Li
465333ab70
r600 : enable gl2, set R600_ENABLE_GLSL_TEST by default.
2009-12-18 00:23:04 -05:00
Dave Airlie
112908c279
radeon: fix frontbuffer read/drawpixels
...
Bug 25699
The main problem was the optimising flush wasn't doing the front
rendering checks properly.
2009-12-18 14:35:03 +10:00
Dave Airlie
5f59e79f3a
r300g: store own copy of flush_cb and flush data.
...
don't go sneaking around inside the libdrm copy.
2009-12-18 10:24:50 +10:00
Michal Krol
b1ed72ebe2
Move the remaining format pf_get_* functions to u_format.h.
...
Previously they depended on format blocks, but after removing those
they started depending on format encoding.
2009-12-17 23:41:57 +01:00
Michal Krol
ec5577a83d
util: Remove util_format_get_block().
2009-12-17 22:39:03 +01:00
Michal Krol
16c6dce013
Merge branch 'master' into pipe-format-simplify
...
Conflicts:
src/gallium/auxiliary/draw/draw_pipe_aaline.c
src/gallium/auxiliary/draw/draw_pipe_pstipple.c
src/gallium/auxiliary/util/u_blit.c
src/gallium/auxiliary/util/u_gen_mipmap.c
src/gallium/auxiliary/util/u_surface.c
src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c
src/gallium/drivers/cell/ppu/cell_texture.c
src/gallium/drivers/llvmpipe/lp_texture.c
src/gallium/drivers/r300/r300_emit.c
src/gallium/drivers/r300/r300_texture.c
src/gallium/drivers/softpipe/sp_texture.c
src/gallium/drivers/softpipe/sp_tile_cache.c
src/gallium/drivers/svga/svga_state_vs.c
src/gallium/include/pipe/p_format.h
src/gallium/state_trackers/dri/dri_drawable.c
src/gallium/state_trackers/egl/egl_surface.c
src/gallium/state_trackers/python/p_device.i
src/gallium/state_trackers/python/st_softpipe_winsys.c
src/gallium/state_trackers/vega/api_filters.c
src/gallium/state_trackers/vega/image.c
src/gallium/state_trackers/vega/mask.c
src/gallium/state_trackers/vega/paint.c
src/gallium/state_trackers/vega/renderer.c
src/gallium/state_trackers/vega/vg_tracker.c
src/gallium/state_trackers/xorg/xorg_crtc.c
src/gallium/state_trackers/xorg/xorg_dri2.c
src/gallium/state_trackers/xorg/xorg_exa.c
src/gallium/state_trackers/xorg/xorg_renderer.c
src/gallium/state_trackers/xorg/xorg_xv.c
src/gallium/state_trackers/xorg/xvmc/surface.c
src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c
src/gallium/winsys/drm/radeon/core/radeon_buffer.c
src/gallium/winsys/egl_xlib/sw_winsys.c
src/gallium/winsys/g3dvl/xlib/xsp_winsys.c
src/gallium/winsys/gdi/gdi_llvmpipe_winsys.c
src/gallium/winsys/gdi/gdi_softpipe_winsys.c
src/gallium/winsys/xlib/xlib_cell.c
src/gallium/winsys/xlib/xlib_llvmpipe.c
src/gallium/winsys/xlib/xlib_softpipe.c
src/mesa/state_tracker/st_cb_fbo.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_texture.c
2009-12-17 22:37:15 +01:00
Michal Krol
440fc5bf78
util/format: Fix bogus assertion.
2009-12-17 21:57:24 +01:00
Michal Krol
3af2ddbe94
s/desc->type/desc->channel[0].type/
2009-12-17 21:25:47 +01:00
Sedat Dilek
294bd53d4b
glsl/apps: Add dummy install target to fix 'make install'
...
Signed-off-by: Brian Paul <brianp@vmware.com>
2009-12-17 12:46:55 -07:00
Sedat Dilek
2f127e5236
configure.ac: Add glsl to SRC_DIRS
...
Signed-off-by: Brian Paul <brianp@vmware.com>
2009-12-17 12:46:55 -07:00
Michal Krol
e195eab909
Merge branch 'glsl-pp-rework-2'
2009-12-17 17:00:46 +01:00
Dave Airlie
1c28073fdf
radeon: drop assert accessing cref which is meant to be hidden
2009-12-17 14:23:53 +10:00
Dave Airlie
5484f9dfc6
radeon: drop unused members of radeon_state.
2009-12-17 14:23:47 +10:00
Dave Airlie
f24c29cc39
r600: move structs for legacy cmdbuf into cmdbuf C file.
...
these really shouldn't be exposed here
2009-12-17 14:23:08 +10:00
Alex Deucher
20ee275974
r600: Invert front face winding when rendering to FBO
...
fixes fdo bug 25679
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-12-16 16:18:22 -05:00
Roland Scheidegger
50caff5675
gallium: edgeflags change fixes
...
use correct number of vertex inputs
fix not running pipeline in case of edgeflags
changes to mesa to tgsi translation still very broken
2009-12-16 22:12:16 +01:00
Ian Romanick
aeea8a07b8
mesa: set version string to 7.6.1-rc4
2009-12-16 10:13:41 -08:00
Brian Paul
8a09e6e2ad
mesa: add missing semicolon
...
See bug 25663.
2009-12-16 10:39:26 -07:00
Richard Li
09cef45393
r600 : clean a bit to prepare to enable gl2.
2009-12-16 11:41:37 -05:00
Brian Paul
35ff190a9c
docs: document 7.6.1 BlueGene fixes
2009-12-16 08:17:43 -07:00