Brian Paul
c32477742f
Add support for GL_REPLACE_EXT texture env mode.
...
GL_REPLACE_EXT comes from the ancient GL_EXT_texture extension. Found an old demo that
actually uses it.
The values of the GL_REPLACE and GL_REPLACE_EXT tokens is different, unfortunately.
2008-04-30 16:08:19 -06:00
Brian Paul
07b551f7cf
added xdemos/sharedtex.c test
...
Test that modifications to a texture object in one rendering context are seen
in a second rendering context.
Press 't' to change the texture's image/colors.
2008-04-30 15:30:29 -06:00
Brian Paul
bd5b99d389
gallium: fix typo: s/custam/custom/
2008-04-30 15:29:32 -06:00
Zack Rusin
653da2d069
plug a memleak, destroy setup context
2008-04-30 15:04:58 -04:00
Zack Rusin
026e31a068
try to fix the deleting of the bound cso during cleanup of the hash
2008-04-30 15:04:58 -04:00
José Fonseca
dadb11f5d9
gallium: Fix release build.
2008-05-01 03:43:19 +09:00
José Fonseca
cafb545721
d3d: Windows miniport driver portability fixes.
2008-05-01 02:25:23 +09:00
José Fonseca
c9acd439b1
scons: Try to cope with scons 0.98+.
2008-05-01 02:25:23 +09:00
Brian Paul
99fba5466b
gallium: use new buffer wrapper functions in p_inlines.h
...
This allows us to remove most of the direct references to winsys in the state tracker.
2008-04-30 10:43:59 -06:00
Brian Paul
15318c8d8e
gallium: new pipe_buffer alloc/map/unmap/ref wrappers
2008-04-30 10:43:09 -06:00
Brian Paul
7146a1a29d
gallium: consolidate the bitmap->texel conversion code
2008-04-30 10:10:44 -06:00
Brian Paul
d3b98330d8
gallium: create a new texture each time we init/flush the bitmap cache
2008-04-30 10:00:44 -06:00
Brian Paul
eefb9d3b51
gallium: simplify texture format selection
2008-04-30 09:41:55 -06:00
Brian Paul
42fb48492e
gallium: init hw_key with memset() to silence valgrind warnings
...
We shouldn't be hashing with keys that have uninitialized memory.
2008-04-29 18:35:30 -06:00
Brian Paul
d0b2561c57
gallium: updated comment in xm_flush_frontbuffer()
2008-04-29 18:35:30 -06:00
Brian Paul
62a29412b9
gallium: test for new PIPE_ARCH_X86
2008-04-29 18:35:30 -06:00
Brian Paul
6fb4009226
gallium: flush pipe before updating bitmap texture
...
Fixes duplicated text bug in progs/tests/texwrap.c
2008-04-29 17:30:21 -06:00
Zack Rusin
0d80f407f1
silence p_debug.h:63: warning: ISO C forbids forward references to ‘enum’ types
2008-04-29 17:21:10 -04:00
Brian Paul
5692e09be8
disable GL_TEXTURE_1D at end of frame to fix failed assertion
2008-04-29 15:03:06 -06:00
Brian Paul
fce5951b56
gallium: declare pipe_format enum to silence warnings
2008-04-29 14:39:42 -06:00
Keith Whitwell
1e97ab6856
gallium: add pack for _FLOAT formats to pack_ub
2008-04-29 21:30:31 +01:00
Keith Whitwell
bbafa8aa2f
gallium: fix pack for A1R5B5G5
2008-04-29 21:30:04 +01:00
Keith Whitwell
fbddc8097c
gallium: add pack for A4R4G4B4
2008-04-29 21:05:48 +01:00
Keith Whitwell
7441f2e3ea
gallium: add pack for A1R5B5G5
2008-04-29 20:48:15 +01:00
Keith Whitwell
9bfe1a3d50
gallium: add debug_print_format() make it easier to print format error messages
2008-04-29 20:48:14 +01:00
Brian Paul
733bc4df1a
gallium: added some assertions to be sure the blit's surface formats are suitable
2008-04-29 12:55:41 -06:00
Brian Paul
dd9dc7df80
gallium: added some assertions to st_render_texture() to check surface format
...
Make sure we can really render to the texture surface given its format.
2008-04-29 12:54:52 -06:00
Brian Paul
cc94863429
gallium: fix broken GL_DEPTH_COMPONENT case in fallback_copy_texsubimage()
...
Also, make sure surfaces are suitable for blitting before calling util_blit_pixels().
2008-04-29 12:53:37 -06:00
Brian Paul
5fb774ab31
mesa: added _mesa_scale_and_bias_depth_uint()
2008-04-29 12:51:06 -06:00
Brian Paul
1cff4992b3
gallium: add \n to error strings
2008-04-29 11:11:47 -06:00
Brian Paul
5e8d7899a8
gallium: fix error msg typo
2008-04-29 11:11:47 -06:00
Roland Scheidegger
216603348c
gallium: set border color
2008-04-29 17:54:38 +02:00
Brian Paul
059ab50c60
mesa: explicitly delete textures before creating new ones
...
Also, call glutDestroyWindow() upon exit.
2008-04-28 14:20:11 -06:00
Brian Paul
c2497879f1
gallium: fix incorrect level param in copy_image_data_to_texture()
...
This fixes a weird conform test failure that depended on something that
happened several tests earlier. This took waaaaaay too long to find/fix.
2008-04-28 14:04:56 -06:00
Keith Whitwell
c4917c6231
tgsi: make loop structure clearer, use x86_lea for increments
2008-04-28 18:50:31 +01:00
Keith Whitwell
9fb444f191
tsgi: add a makefile
2008-04-28 18:43:27 +01:00
Keith Whitwell
546ab045d8
translate: squash warnings
2008-04-28 18:11:55 +01:00
Keith Whitwell
a41b78d107
pb: remove unused variable, squash warning
2008-04-28 18:11:55 +01:00
Michal Krol
b6d9666a42
gallium: Set SSE_SWIZZLES to 0 by default.
2008-04-28 19:03:20 +02:00
Michal Krol
58d3dff0d3
gallium: Generate SSE code to swizzle and unswizzle vs inputs and outputs.
...
Change SSE_SWIZZLES #define to 0 to disable it.
2008-04-28 18:50:58 +02:00
Brian Paul
7f5e9d3f07
gallium: check for PIPE_FORMAT_X8Z24_UNORM format
2008-04-28 09:40:26 -06:00
Brian Paul
44c79f88b8
gallium: replace some code with a call to st_choose_format()
2008-04-28 09:39:48 -06:00
Brian Paul
ee4434121c
gallium: return enum pipe_format, not uint, for a few functions
2008-04-28 09:38:18 -06:00
Brian Paul
0d179ffe97
gallium: add cases for PIPE_FORMAT_X8Z24_UNORM
2008-04-28 09:33:20 -06:00
José Fonseca
083008d808
pipebuffer: Be extra cautious with the incoming buffers.
...
A common mistake is trying to fence user or malloc buffers. So don't let
the crash happen inside pipebuffer lib.
2008-04-27 21:19:34 +09:00
José Fonseca
e3c4159957
rtasm: Implement x86_retw.
2008-04-27 21:09:45 +09:00
Brian
a8e39b6f5a
gallium: fix broken SGT, SLE
2008-04-25 19:25:26 -06:00
Brian
a94aad297d
use PIPE_ARCH_X86
2008-04-25 18:46:29 -06:00
Brian Paul
aad9dd14d8
gallium: tweak comments, minor var renaming
2008-04-25 16:27:52 -06:00
Brian Paul
5e3b0d227c
gallium: tweak comments, minor var renaming
2008-04-25 16:27:52 -06:00