Alex Deucher
df02bc42b3
radeon/r200/r600: fix drivers for changes in 433f0a82f5
2009-12-05 18:24:41 -05:00
Vinson Lee
3cd745515e
draw: Initialize variable in draw_pt.c.
...
(cherry picked from commit ea98e9820d )
2009-12-05 15:11:41 -08:00
Vinson Lee
b2953ee1a6
mesa: Fix array out-of-bounds access by _mesa_TexGenf.
...
_mesa_TexGenf calls _mesa_TexGenfv, which uses the params argument
as an array.
(cherry picked from commit ca5a7aadb4 )
2009-12-05 13:00:35 -08:00
Vinson Lee
d74cd04e61
mesa: Fix array out-of-bounds access by _mesa_TexGeni.
...
_mesa_TexGeni calls _mesa_TexGeniv, which uses the params argument
as an array.
(cherry picked from commit d55fb7c835 )
2009-12-05 12:59:34 -08:00
Vinson Lee
ca8a2150c7
mesa: Fix array out-of-bounds access by _mesa_TexParameterf.
...
_mesa_TexParameterf calls set_tex_parameterf, which uses the params
argument as an array.
(cherry picked from commit 270d36da14 )
2009-12-05 12:50:56 -08:00
Vinson Lee
4071d065c2
mesa: Fix array out-of-bounds access by _mesa_TexParameterf.
...
_mesa_TexParameterf calls set_tex_parameteri, which uses the params
argument as an array.
(cherry picked from commit a201dfb6bf )
2009-12-05 12:47:40 -08:00
Younes Manton
cbb7226a4b
st/xvmc: No more pf_get_block().
2009-12-05 13:19:54 -05:00
Michel Dänzer
56a4342a04
r300g: Need to emit a hardware scissor rectangle even if scissor is disabled.
...
Just make it cover the whole framebuffer in that case. Otherwise the kernel CS
checker may complain, e.g. running progs/demos/gearbox. That runs fast now
here, but doesn't look right yet.
2009-12-05 17:59:49 +01:00
Michel Dänzer
01537a84df
st/mesa: Prefer alpha-less formats for RGB textures.
...
This can e.g. increase the chance of being able to accelerate
glCopyTex(Sub)Image from an alpha-less renderbuffer.
2009-12-05 17:59:49 +01:00
Michel Dänzer
d13c603e37
Add 'texture leak' test.
2009-12-05 17:59:49 +01:00
Michel Dänzer
433f0a82f5
radeon: Only get DRI2 front buffer information for glXBindTexImageEXT.
2009-12-05 17:54:23 +01:00
Vinson Lee
1446f30875
progs/samples: Fix memory leak if malloc fails in rgbtoppm.c.
2009-12-05 01:43:29 -08:00
Vinson Lee
412aeeed1c
progs/samples: Fix memory leak if fopen fails in rgbtoppm.c.
2009-12-05 01:38:14 -08:00
Vinson Lee
6212c8103a
progs/samples: Add rgbtoppm to Makefile.
2009-12-05 01:28:47 -08:00
Vinson Lee
2cd2341ce8
progs/tests: Removed unused variable from texdown.c.
2009-12-05 01:23:05 -08:00
Vinson Lee
d642edd2d1
progs/vpglsl: Assign glGetUniformLocationARB return value to GLint.
...
The return type of glGetUniformLocationARB is GLint, not GLuint.
2009-12-05 01:11:26 -08:00
Vinson Lee
8d2f3434c5
progs/fp: Redraw upon keypress.
2009-12-04 23:31:39 -08:00
José Fonseca
5b1a7843f8
svga: Dump SVGA_3D_CMD_BLIT_SURFACE_TO_SCREEN commands.
2009-12-05 06:34:59 +00:00
José Fonseca
781d8fccba
svga: Use _debug_printf, so that output may be dumped in release builds too.
...
The dump calls should be wrapped in #ifdef DEBUG .. #endif.
2009-12-05 06:05:56 +00:00
José Fonseca
501989bbcd
llvmpipe: Tweak disassembly to match gdb.
...
Helps verifying udis86 output.
2009-12-05 05:43:53 +00:00
José Fonseca
dd51b4f909
llvmpipe: Stop disassembling when an unsupported opcode is found.
...
Otherwise the terminal gets full of garbage.
2009-12-05 05:43:10 +00:00
Vinson Lee
fe8e18bcd4
mesa: Fix array out-of-bounds access in _mesa_TexEnvf.
...
_mesa_TexEnvf calls _mesa_TexEnvfv, which uses the param argument
as an array.
(cherry picked from commit a11d60d14c )
2009-12-04 17:48:30 -08:00
Vinson Lee
4fb5ae7233
progs/util: Fix memory leak if fread returns 0 in CompileShaderFile.
...
(cherry picked from commit 11905da883 )
2009-12-04 17:35:00 -08:00
Vinson Lee
5683d7d43f
progs/util: Fix memory leak if fail to load/compile shader
...
Signed-off-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit c475079ef2 )
2009-12-04 17:32:48 -08:00
Vinson Lee
e5bc2a19bd
progs/fp: Add tri-inv.c to Makefile.
2009-12-04 17:29:53 -08:00
Brian Paul
8a23105fa0
llvmpipe: still more bin code reorganization
...
Move tiles_x,y fields from setup state into bin state.
Move more bin-adding commands into lp_bin.[ch].
2009-12-04 15:59:25 -07:00
Brian Paul
2c8d5c66ce
llvmpipe: remove dead code left over from a previous commit
2009-12-04 15:46:37 -07:00
Brian Paul
01b1900084
llvmpipe: reorganization of binning data structions and funtions
...
New lp_bins struct contains all bin information.
More move bin-related code into lp_bin.[ch]
Use new/updated bin-access functions to hide implementation details.
The result is more/cleaner separation between the setup and rast components.
This will make double-buffering of the bins easier, etc.
2009-12-04 15:31:09 -07:00
Brian Paul
b533b56750
llvmpipe: move lp_rasterize_bin() into lp_rast.c
...
First step of moving bin rasterization/execution code out of lp_setup.c
2009-12-04 14:47:46 -07:00
José Fonseca
c0a13bbae1
llvmpipe: Port vertex sampler support from softpipe.
...
Just enough boilerplate code to avoid segfaulting.
2009-12-04 21:27:03 +00:00
José Fonseca
a312e76468
llvmpipe: Ensure transfers are mapped.
...
This shouldn't happen but it does by some misterious reason. Fail the
assertion but at least do not segfault on release builds.
2009-12-04 21:27:03 +00:00
José Fonseca
b00b06b6e4
llvmpipe: Remove debug printf.
2009-12-04 21:27:03 +00:00
José Fonseca
818fd6b101
gallium: Disable force_align_arg_pointer attribute on x86_64.
...
Apparently not only unnecessary but also causes gcc to complain.
2009-12-04 21:27:03 +00:00
Brian Paul
9fca3e065b
llvmpipe: simplify framebuffer state code
2009-12-04 14:22:08 -07:00
Brian Paul
a08d630216
llvmpipe: use LP_DBG() macro everywhere
2009-12-04 14:11:25 -07:00
Brian Paul
15a2a588d8
llvmpipe: fix-up polygon culling/winding
2009-12-04 13:53:28 -07:00
Brian Paul
24a3b0d23a
llvmpipe: add missing sources to Makefile
2009-12-04 13:01:03 -07:00
Brian Paul
49a720c5cd
llvmpipe: comments and minor clean-ups
2009-12-04 12:59:34 -07:00
Brian Paul
d9dc3d5976
llvmpipe: move bin-related structures and functions into new lp_bin.[ch]
...
And put lp_ prefixes on some functions.
2009-12-04 12:54:37 -07:00
Brian Paul
5c7d1b592a
llvmpipe: remove lp_rast_triangle::oneoverarea field
...
Makes lp_rast_triangle a little smaller (now 280 bytes on a 32-bit system).
2009-12-04 11:58:26 -07:00
Brian Paul
b1659b9213
llvmpipe: bin state-change commands
...
Previously, each triangle had a pointer to the state to use for shading.
Now we insert state-change commands into the bins. When we execute one
of those commands we just update a 'current state' pointer and use that
pointer when calling the jit shader.
When inserting state-change commands into a bin we check if the previous
command was also a state-change command and simply replace it. This
avoids accumulating useless/redundant state-change commands.
2009-12-04 11:50:43 -07:00
Brian Paul
9dca010048
llvmpipe: struct cmd_bin
...
Just introducing a new structure to represent a per-tile bin.
2009-12-04 10:41:42 -07:00
Roland Scheidegger
7d9b2edb97
identity: fix copy&paste error
2009-12-04 18:34:52 +01:00
Marek Olšák
042b524d48
radeong: flush CS if a buffer being mapped is referenced by it
...
Also, overlapping occlusion queries seems to work now.
2009-12-04 09:23:59 -08:00
Marek Olšák
7679447b58
r300g, radeong: fix the CS overflow
2009-12-04 09:23:59 -08:00
Marek Olšák
3da8265cd3
r300g: fix warnings
2009-12-04 09:23:59 -08:00
Roland Scheidegger
c977dd9c77
svga: fix another pipe_reference strict aliasing violation
2009-12-04 18:23:35 +01:00
Brian Paul
1796ffd3bc
llvmpipe: fix typo, whitespace
2009-12-04 09:19:09 -07:00
Brian Paul
04e12e31b2
llvmpipe: dynamic allocation of triangle a0/dadx/dady arrays
...
Much less memory per triangle now.
2009-12-04 09:14:42 -07:00
Jakob Bornecrantz
6f1db18f14
vmware/xorg: Also stop ports on close
2009-12-04 16:50:26 +01:00