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
Brian Paul
1cf1641427
gallium: remove unneeded st->bitmap_texcoord_bias
2008-04-25 16:12:11 -06:00
Brian Paul
332b77b852
gallium: use simple color pass-through fragment shader if textures don't exist
...
If we run out of texture memory we may not have the texture needed by the
fragment shader. If this happens, plug in a color passthrough shader.
So instead of crashing, we just don't see the texture.
GL_OUT_OF_MEMORY is raised, of course.
2008-04-25 15:24:07 -06:00
Brian Paul
4c50969334
gallium: added null ptr check
2008-04-25 15:24:07 -06:00
Brian Paul
9b44f5a755
gallium: added a null ptr check
2008-04-25 15:24:07 -06:00
Brian Paul
1437b41d90
gallium: fix typo s/_mesa_unmap_drapix_pbo/_mesa_unmap_drawpix_pbo/
2008-04-25 14:18:09 -06:00
Brian Paul
149a4175fa
gallium: consolidate quad drawing code
2008-04-25 14:18:09 -06:00
Brian Paul
b6d8b21cc8
gallium: remove unused st_draw_vertices()
2008-04-25 14:18:09 -06:00
Brian Paul
7dcbbdf353
gallium: use util_draw_vertex_buffer() instead of st_draw_vertices()
2008-04-25 14:18:09 -06:00
José Fonseca
1e71283cce
scons: Silent MSVC CRT security warnings.
2008-04-26 01:55:43 +09:00
Brian Paul
3faea292e5
gallium: fix the compressed texture hack in st_texture_image_copy()
...
Actually, the hack is still there and needs to be revisited, but I get a bit
further with compressed textures now.
2008-04-25 10:34:42 -06:00
José Fonseca
658f5e7213
scons: A few fixes for building mesa on windows.
2008-04-26 01:14:52 +09:00
Keith Whitwell
1aedbf9efe
draw: emit extra flags whenever pipeline is active
...
The assert was in fact over-sensitive, but emitting the extra flags
is pretty trivial & we may as well just do it whenever we know the
pipeline is running.
2008-04-25 16:16:14 +01:00