Commit graph

22977 commits

Author SHA1 Message Date
Brian Paul
92d3b2a4da gallium: comments for surface_copy(), surface_fill() in p_context.h 2009-04-09 18:40:24 -06:00
Brian Paul
20f3497e4b i965: re-org of some of the new constant buffer code
Plus, begin the new code for vertex shader const buffers.
2009-04-09 18:37:03 -06:00
Brian Paul
08a1e1ebcb demos: fix aspect ratio in Reshape() 2009-04-09 17:04:58 -06:00
Brian Paul
2078e6cf55 i965: new SURF_INDEX_ macros
Used to map drawables, textures and constant buffers to surface binding
table indexes.
2009-04-09 17:04:09 -06:00
Brian Paul
7e0d4598fb gallium: change // comment to /* */ style 2009-04-09 16:10:43 -06:00
Brian Paul
985e71866a gallium: updated comments in p_screen.h 2009-04-09 16:03:50 -06:00
Brian Paul
a35e745826 i965simple: remove pipe_texture::compressed reference 2009-04-09 15:33:09 -06:00
Michal Krol
c27c670ad8 tgsi/sse2: Fix build. 2009-04-09 23:24:57 +02:00
Michal Krol
5f31890861 draw: Fix LIT instruction. 2009-04-09 23:19:22 +02:00
Ian Romanick
6a6e478e55 intel / DRI2: Accept fake front-buffer from loader
Handle the loader returning a fake front-buffer.  Since the driver
never specifically requests a fake front-buffer, the driver assumes
that it will never receive both a fake and a real front-buffer.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kristian Høgsberg <krh@redhat.com>
2009-04-09 14:18:14 -07:00
Ian Romanick
e6386e0d9a DRI2: Assume that there is always a front buffer
Assume that the front-buffer exists even if the server didn't tell the
client that it exists.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kristian Høgsberg <krh@redhat.com>
2009-04-09 14:18:14 -07:00
Ian Romanick
43cf0d1eeb intel / DRI2: Track and flush front-buffer rendering
Track two flags:  whether or not front-buffer rendering is currently
enabled and whether or not front-buffer rendering has been enabled
since the last glFlush.  If the second flag is set, the front-buffer
is flushed via a loader call back.  If the first flag is cleared, the
second flag is cleared at this time.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kristian Høgsberg <krh@redhat.com>
2009-04-09 14:18:14 -07:00
Ian Romanick
82634ee8df DRI2: Provide an interface for drivers to flush front-buffer rendering
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kristian Høgsberg <krh@redhat.com>
2009-04-09 14:18:14 -07:00
José Fonseca
c09ef3e747 python: Fix bad pointer. 2009-04-09 22:11:48 +01:00
Brian Paul
311f77198e st: remove another unneeded 'is compressed' comparison 2009-04-09 15:02:48 -06:00
Brian Paul
1f4a7f3a2e st: remove unneeded "is compressed" check
The format indicates compressed vs. uncompressed.
2009-04-09 15:02:48 -06:00
Brian Paul
e53d6ab39b st: rearrange some code to be a little more clear 2009-04-09 15:02:48 -06:00
Brian Paul
227aa0070d gallium: remove unneeded compressed=0 assignment 2009-04-09 15:02:48 -06:00
Brian Paul
f97df61d26 gallium: remove unneeded compressed=0 assignment 2009-04-09 15:02:47 -06:00
Brian Paul
f122015674 st: remove comp_byte parameter to st_texture_create()
We can determine if the texture is compressed by checking the format.
2009-04-09 15:02:47 -06:00
Brian Paul
1ad2484f03 st: consolidate format->usage computation 2009-04-09 15:02:47 -06:00
Brian Paul
eaca19edbb st: add const qualifiers, use GL types 2009-04-09 15:02:47 -06:00
Brian Paul
d11d903c1b st: make loops over 3D texture slices a litte more intuitive 2009-04-09 15:02:47 -06:00
Brian Paul
5facd7986a st: reformatting and clean-ups in texture code 2009-04-09 15:02:47 -06:00
Michal Krol
790a18f2c2 tgsi/sse2: Fix ARL instruction. 2009-04-09 22:51:15 +02:00
Michal Krol
c54b219975 tgsi/sse2: Fix LIT instruction. 2009-04-09 22:51:13 +02:00
José Fonseca
7cfd3b3bdf trace: Dump the fence, not its pointer. 2009-04-09 21:28:31 +01:00
José Fonseca
16c9bb81fd wgl: Remove unused member. 2009-04-09 21:27:43 +01:00
José Fonseca
0da3a13d6a trace: Use 'flags' name consistently. 2009-04-09 21:27:03 +01:00
José Fonseca
7ea265888f gallium: Use "flags" consistently. 2009-04-09 21:26:15 +01:00
José Fonseca
fa2b9e4306 gdi: Use stw_* names. 2009-04-09 20:45:44 +01:00
José Fonseca
81660a44dc wgl: Use more stw_* names. 2009-04-09 20:45:43 +01:00
José Fonseca
4bbb5eb96a wgl: Use hooks instead of subclassing the window.
Subclassing the window is invasive: we might call an old window proc even
after it was removed. Glut and another bug just in the wrong time was
provoking this. Hooks don't have this problem.
2009-04-09 20:45:43 +01:00
Brian Paul
deff099215 mesa: fix potential recursive locking deadlock in _mesa_HashWalk()
If the walk callback called _mesa_HashRemove() we'd deadlock.
2009-04-09 10:53:43 -06:00
Brian Paul
3163ea1453 i965: free shader's constant buffer in brwDeleteProgram()
Fixes mem leak observed with texcombine test.
2009-04-09 10:33:16 -06:00
José Fonseca
564ba25386 wgl: Catch the attempt of releasing a context which is not current. 2009-04-09 15:22:15 +01:00
José Fonseca
858d3da441 wgl: Move the framebuffer list to the device. Avoid recursive locking. 2009-04-09 15:22:15 +01:00
José Fonseca
8ef4129003 wgl: More symbol naming normalization. 2009-04-09 15:22:15 +01:00
José Fonseca
d8ffccc80b stw: Use wglext.h's defines and prototypes. 2009-04-09 15:22:15 +01:00
José Fonseca
19068d93c8 stw: Normalize symbols prefix. 2009-04-09 15:22:15 +01:00
José Fonseca
7e563200b8 wgl: Add const qualifier to global constant data. 2009-04-09 15:22:15 +01:00
Brian Paul
8131123eff i965: set BRW_MASK_DISABLE flag in "send" instruction in brw_dp_READ_4()
This fixes the random results that were seen when fetching a constant
inside an IF/ELSE clause.  Disabling the execution mask ensures that all
the components of the register are written.
2009-04-08 19:37:33 -06:00
Brian Paul
43fc20e4e1 i965: clean-ups, debug code in brw_wm_glsl.c 2009-04-08 19:37:33 -06:00
Brian Paul
42cd3014f8 i965: init current_const[i].index = -1 2009-04-08 19:37:33 -06:00
Brian Paul
ed9ba19bbb i965: move the fetch_constants() call before setting conditional mod state
Before, the instruction's CondUpdate field was mistakenly effecting the
constant-fetch operation.

Fixes progs/glsl/bump.c demo.  But there are some other issues related
to condition flags and IF/ELSE that need investigation...
2009-04-08 19:37:33 -06:00
Brian Paul
f4468384b6 mesa: minor datatype changes in optimization code 2009-04-08 19:37:33 -06:00
Ben Skeggs
0da2781f2f nv50: adapt for new clear interface
this is so much nicer :)
2009-04-09 11:36:28 +10:00
Dave Airlie
5e361c47ab r300: fix color tiling 2009-04-09 10:51:10 +10:00
Maciej Cencora
1ec0efa7d3 r300: reorder fog coordinate and WPOS fp attributes
HW TCL path currently assumed fog, WPOS order. The order was inverted for SW TCL path.

This hopefully fixes rest of fog and WPOS related bugs.
Additionally fix some indentation, don't route unnecessary components of fog coordinates for performance reasons and simplify vertex
attribute emitting for SW TCL path.
2009-04-09 10:31:51 +10:00
Maciej Cencora
3b1d544001 r300: fix regression from swtcl rewrite
Fix wrong attribute emit and revert to previous behaviour of calculating VAP_OUT_VTX_FMT_1 register value.

We can't use r300VAPOutputCntl1 function because it assumes that all texture coords have 4 components and that is the case for HW TCL
path, but not for SW TCL.
2009-04-09 10:31:36 +10:00