mesa.git
16 years agomesa: comments, whitespace
Brian [Fri, 2 May 2008 01:29:25 +0000 (19:29 -0600)]
mesa: comments, whitespace

16 years agogallium: change calculate_first_last_level() to match gallium-tex-surfaces branch
Brian Paul [Tue, 6 May 2008 14:40:41 +0000 (08:40 -0600)]
gallium: change calculate_first_last_level() to match gallium-tex-surfaces branch

16 years agofix _mesa_ffs for alternative compilers
Alan Hourihane [Mon, 5 May 2008 22:09:38 +0000 (23:09 +0100)]
fix _mesa_ffs for alternative compilers

16 years agodeclare atoms as extern
Alan Hourihane [Mon, 5 May 2008 22:08:59 +0000 (23:08 +0100)]
declare atoms as extern

16 years agogallium: fix warnings
Brian Paul [Sat, 3 May 2008 15:26:25 +0000 (09:26 -0600)]
gallium: fix warnings

16 years agoPress <space> to reset limit/bias values, clean-up limit/bias printf
Brian Paul [Sat, 3 May 2008 15:08:42 +0000 (09:08 -0600)]
Press <space> to reset limit/bias values, clean-up limit/bias printf

16 years agogallium: fix sampler->max_lod computation
Brian Paul [Sat, 3 May 2008 15:07:11 +0000 (09:07 -0600)]
gallium: fix sampler->max_lod computation

16 years agogallium: fix computation of sampler->min_lod
Brian Paul [Sat, 3 May 2008 14:58:44 +0000 (08:58 -0600)]
gallium: fix computation of sampler->min_lod

The texture BaseLevel is accounted for in texture layout so it doesn't factor
in here.  May also need to adjust max_lod...

16 years agogallium: remove 0.5 vertex biases in set_vertex_data()
Brian Paul [Fri, 2 May 2008 20:00:35 +0000 (14:00 -0600)]
gallium: remove 0.5 vertex biases in set_vertex_data()

These should not be needed and were causing garbage to appear along the
edges of the mipmap images.

16 years agogallium: remove obsolete PIPE_CAP_BITMAP_TEXCOORD_BIAS
Brian Paul [Fri, 2 May 2008 20:00:08 +0000 (14:00 -0600)]
gallium: remove obsolete PIPE_CAP_BITMAP_TEXCOORD_BIAS

16 years agogallium: minor code, comments clean-up
Brian Paul [Fri, 2 May 2008 16:43:29 +0000 (10:43 -0600)]
gallium: minor code, comments clean-up

16 years agogallium: in st_finalize_texture() check texture dimensions
Brian Paul [Fri, 2 May 2008 16:38:39 +0000 (10:38 -0600)]
gallium: in st_finalize_texture() check texture dimensions

Check dimensions in addition to target, format, etc.
Fixes a bug where we failed to detect a change in texture image sizes and
wound up using the old texture data.

16 years agogallium: new debug code (disabled)
Brian Paul [Fri, 2 May 2008 16:37:20 +0000 (10:37 -0600)]
gallium: new debug code (disabled)

16 years agogallium: fix typos, comments, whitespace
Brian Paul [Fri, 2 May 2008 15:26:17 +0000 (09:26 -0600)]
gallium: fix typos, comments, whitespace

16 years agogallium: remove ^M (CR) chars
Brian Paul [Fri, 2 May 2008 14:22:25 +0000 (08:22 -0600)]
gallium: remove ^M (CR) chars

16 years agogallium: code movement (XSHM code)
Brian Paul [Fri, 2 May 2008 13:54:11 +0000 (07:54 -0600)]
gallium: code movement (XSHM code)

16 years agoset TextureID = NULL after deleting the array
Brian Paul [Thu, 1 May 2008 22:21:43 +0000 (16:21 -0600)]
set TextureID = NULL after deleting the array

16 years agogallium: comments, clean-ups
Brian Paul [Thu, 1 May 2008 21:29:25 +0000 (15:29 -0600)]
gallium: comments, clean-ups

16 years agogallium: Reallocate pipe_texture in st_TexImage if the texture object was used.
Michel Dänzer [Fri, 2 May 2008 15:22:20 +0000 (16:22 +0100)]
gallium: Reallocate pipe_texture in st_TexImage if the texture object was used.

Fixes problems with interleaved glTexImage and rendering calls.

16 years agosnprintf -> util_snprintf
Alan Hourihane [Fri, 2 May 2008 15:25:37 +0000 (15:25 +0000)]
snprintf -> util_snprintf

16 years agotgsi: Enable fast high precision rsqrt.
Michal Krol [Fri, 2 May 2008 14:12:55 +0000 (16:12 +0200)]
tgsi: Enable fast high precision rsqrt.

16 years agotgsi: Implement fast rsqrtf. Not tested, inactive.
Keith Whitwell [Fri, 2 May 2008 14:02:18 +0000 (16:02 +0200)]
tgsi: Implement fast rsqrtf. Not tested, inactive.

16 years agorevert mode change back to 644
Alan Hourihane [Fri, 2 May 2008 10:34:58 +0000 (10:34 +0000)]
revert mode change back to 644

16 years agoinline -> INLINE
Alan Hourihane [Fri, 2 May 2008 10:31:46 +0000 (10:31 +0000)]
inline -> INLINE

16 years agoSome changed for non-C99 compilers
Alan Hourihane [Fri, 2 May 2008 10:08:03 +0000 (10:08 +0000)]
Some changed for non-C99 compilers

16 years agotgsi: Do not assume IN and OUT registers are declared sequentially.
Michal Krol [Fri, 2 May 2008 09:13:58 +0000 (11:13 +0200)]
tgsi: Do not assume IN and OUT registers are declared sequentially.

16 years agotgsi: Fix build on Win32.
Michal Krol [Fri, 2 May 2008 08:20:53 +0000 (10:20 +0200)]
tgsi: Fix build on Win32.

16 years agotgsi: Dump destination register modulate modifier.
Michal Krol [Thu, 1 May 2008 14:39:54 +0000 (16:39 +0200)]
tgsi: Dump destination register modulate modifier.

16 years agogallium: temporarily disable broken SSE2 code for ARL opcode
Brian [Fri, 2 May 2008 00:56:20 +0000 (18:56 -0600)]
gallium: temporarily disable broken SSE2 code for ARL opcode

16 years agogallium: implement TGSI_OPCODE_EXP
Brian [Fri, 2 May 2008 00:49:20 +0000 (18:49 -0600)]
gallium: implement TGSI_OPCODE_EXP

16 years agogallium: implement TGSI_OPCODE_LOG
Brian [Fri, 2 May 2008 00:42:01 +0000 (18:42 -0600)]
gallium: implement TGSI_OPCODE_LOG

16 years agoadded cast for MSVC
Brian Paul [Thu, 1 May 2008 21:21:40 +0000 (15:21 -0600)]
added cast for MSVC

16 years agogallium: remove the unused softpipe_winsys code
Brian Paul [Thu, 1 May 2008 21:19:00 +0000 (15:19 -0600)]
gallium: remove the unused softpipe_winsys code

The struct is still there though until all winsys layers are updated

16 years agotgsi: remove some bogus win vs. linux crud
Keith Whitwell [Thu, 1 May 2008 19:45:15 +0000 (20:45 +0100)]
tgsi: remove some bogus win vs. linux crud

Pass arguments properly in linux now.  Still need to change this to use
a single calling convention on both platforms.

16 years agortasm: learn another version of push
Keith Whitwell [Thu, 1 May 2008 19:44:41 +0000 (20:44 +0100)]
rtasm: learn another version of push

16 years agodraw: label fn args -- shouldn't this be defined where the fn is created?
Keith Whitwell [Thu, 1 May 2008 19:42:44 +0000 (20:42 +0100)]
draw: label fn args -- shouldn't this be defined where the fn is created?

16 years agortasm: fix labels after (not so) recent change to allow dynamic fn growth
Keith Whitwell [Thu, 1 May 2008 19:41:03 +0000 (20:41 +0100)]
rtasm: fix labels after (not so) recent change to allow dynamic fn growth

Using char * for labels doesn't work if you realloc the function
during assembly and free the old storage...

16 years agoi915: avoid crashing on bad parameter
Keith Whitwell [Thu, 1 May 2008 17:50:33 +0000 (18:50 +0100)]
i915: avoid crashing on bad parameter

16 years agoi915: fix warning
Keith Whitwell [Thu, 1 May 2008 17:49:52 +0000 (18:49 +0100)]
i915: fix warning

16 years agosoftpipe: fix warning
Keith Whitwell [Thu, 1 May 2008 17:49:07 +0000 (18:49 +0100)]
softpipe: fix warning

16 years agosct: fix bug in remove_context_from_surface
Keith Whitwell [Thu, 1 May 2008 17:48:28 +0000 (18:48 +0100)]
sct: fix bug in remove_context_from_surface

16 years agogallium: Set sampler->min_lod instead of always reallocating pipe_textures.
Michel Dänzer [Thu, 1 May 2008 16:31:39 +0000 (17:31 +0100)]
gallium: Set sampler->min_lod instead of always reallocating pipe_textures.

16 years agogallium: Notify driver of texture updates in util_blit_pixels().
Michel Dänzer [Thu, 1 May 2008 16:30:17 +0000 (17:30 +0100)]
gallium: Notify driver of texture updates in util_blit_pixels().

16 years agotgsi: restore HIGH_PRECISION setting
Keith Whitwell [Thu, 1 May 2008 14:45:51 +0000 (15:45 +0100)]
tgsi: restore HIGH_PRECISION setting

16 years agotgsi: add some const qualifiers to immediate pointers
Keith Whitwell [Thu, 1 May 2008 14:36:14 +0000 (15:36 +0100)]
tgsi: add some const qualifiers to immediate pointers

16 years agomesa: squash harmless warning
Keith Whitwell [Thu, 1 May 2008 14:32:03 +0000 (15:32 +0100)]
mesa: squash harmless warning

16 years agortasm: assert stack is fully popped in return
Keith Whitwell [Thu, 1 May 2008 14:31:17 +0000 (15:31 +0100)]
rtasm: assert stack is fully popped in return

16 years agodraw: avoid aliasing warning
Keith Whitwell [Thu, 1 May 2008 14:30:50 +0000 (15:30 +0100)]
draw: avoid aliasing warning

16 years agotgsi: use EBX everywhere, be sure to push/pop it
Keith Whitwell [Thu, 1 May 2008 14:27:53 +0000 (15:27 +0100)]
tgsi: use EBX everywhere, be sure to push/pop it

16 years agotgsi: use x86_fn_arg instead of get_argument() -- it knows about push/pops to the...
Keith Whitwell [Thu, 1 May 2008 14:13:46 +0000 (15:13 +0100)]
tgsi: use x86_fn_arg instead of get_argument() -- it knows about push/pops to the stack

16 years agotgsi: use ESI instead of EBX on non-win32 platforms
Keith Whitwell [Thu, 1 May 2008 13:51:18 +0000 (14:51 +0100)]
tgsi: use ESI instead of EBX on non-win32 platforms

16 years agogallium: do something sensible on the error path to try to avoid crashing in release...
Keith Whitwell [Thu, 1 May 2008 13:19:25 +0000 (14:19 +0100)]
gallium: do something sensible on the error path to try to avoid crashing in release builds

16 years agoFix build problem with MSVC
Alan Hourihane [Thu, 1 May 2008 13:54:56 +0000 (14:54 +0100)]
Fix build problem with MSVC

16 years agoAdd Brian's explanation for inheritance in C.
José Fonseca [Thu, 1 May 2008 12:52:05 +0000 (21:52 +0900)]
Add Brian's explanation for inheritance in C.

16 years agogallium: Add newline to eof.
José Fonseca [Thu, 1 May 2008 01:20:31 +0000 (10:20 +0900)]
gallium: Add newline to eof.

16 years agodraw: squash warnings
Keith Whitwell [Thu, 1 May 2008 12:47:27 +0000 (13:47 +0100)]
draw: squash warnings

16 years agodraw: turn on SSE swizzle code
Keith Whitwell [Thu, 1 May 2008 12:47:09 +0000 (13:47 +0100)]
draw: turn on SSE swizzle code

16 years agogallium: remove old files
Brian Paul [Thu, 1 May 2008 00:23:17 +0000 (18:23 -0600)]
gallium: remove old files

16 years agogallium: fix texture border removal bug
Brian Paul [Thu, 1 May 2008 00:21:10 +0000 (18:21 -0600)]
gallium: fix texture border removal bug

16 years agogallium: use the newer PIPE_FORMAT_x_UNORM format names
Brian Paul [Wed, 30 Apr 2008 22:50:17 +0000 (16:50 -0600)]
gallium: use the newer PIPE_FORMAT_x_UNORM format names

16 years agogallium: rename old PIPE_FORMAT_U_I8 with PIPE_FORMAT_I8_UNORM, etc.
Brian Paul [Wed, 30 Apr 2008 22:49:38 +0000 (16:49 -0600)]
gallium: rename old PIPE_FORMAT_U_I8 with PIPE_FORMAT_I8_UNORM, etc.

Now all the packed color types are consistantly named.
Added temporary #defines for the old names until all drivers are updated.

16 years agogallium: replace old PIPE_FORMAT_U_S8 with PIPE_FORMAT_S8_UNORM
Brian Paul [Wed, 30 Apr 2008 22:41:53 +0000 (16:41 -0600)]
gallium: replace old PIPE_FORMAT_U_S8 with PIPE_FORMAT_S8_UNORM

16 years agoAdd support for GL_REPLACE_EXT texture env mode.
Brian Paul [Wed, 30 Apr 2008 22:05:01 +0000 (16:05 -0600)]
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.

16 years agoadded xdemos/sharedtex.c test
Brian Paul [Wed, 30 Apr 2008 20:43:28 +0000 (14:43 -0600)]
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.

16 years agogallium: fix typo: s/custam/custom/
Brian Paul [Wed, 30 Apr 2008 19:24:35 +0000 (13:24 -0600)]
gallium: fix typo: s/custam/custom/

16 years agoplug a memleak, destroy setup context
Zack Rusin [Wed, 30 Apr 2008 18:05:49 +0000 (14:05 -0400)]
plug a memleak, destroy setup context

16 years agotry to fix the deleting of the bound cso during cleanup of the hash
Zack Rusin [Wed, 30 Apr 2008 06:04:28 +0000 (02:04 -0400)]
try to fix the deleting of the bound cso during cleanup of the hash

16 years agogallium: Fix release build.
José Fonseca [Wed, 30 Apr 2008 18:43:19 +0000 (03:43 +0900)]
gallium: Fix release build.

16 years agod3d: Windows miniport driver portability fixes.
José Fonseca [Wed, 30 Apr 2008 15:59:12 +0000 (00:59 +0900)]
d3d: Windows miniport driver portability fixes.

16 years agoscons: Try to cope with scons 0.98+.
José Fonseca [Wed, 30 Apr 2008 15:58:04 +0000 (00:58 +0900)]
scons: Try to cope with scons 0.98+.

16 years agogallium: use new buffer wrapper functions in p_inlines.h
Brian Paul [Wed, 30 Apr 2008 16:43:59 +0000 (10:43 -0600)]
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.

16 years agogallium: new pipe_buffer alloc/map/unmap/ref wrappers
Brian Paul [Wed, 30 Apr 2008 16:43:09 +0000 (10:43 -0600)]
gallium: new pipe_buffer alloc/map/unmap/ref wrappers

16 years agogallium: consolidate the bitmap->texel conversion code
Brian Paul [Wed, 30 Apr 2008 16:10:44 +0000 (10:10 -0600)]
gallium: consolidate the bitmap->texel conversion code

16 years agogallium: create a new texture each time we init/flush the bitmap cache
Brian Paul [Wed, 30 Apr 2008 16:00:44 +0000 (10:00 -0600)]
gallium: create a new texture each time we init/flush the bitmap cache

16 years agogallium: simplify texture format selection
Brian Paul [Wed, 30 Apr 2008 15:41:55 +0000 (09:41 -0600)]
gallium: simplify texture format selection

16 years agogallium: init hw_key with memset() to silence valgrind warnings
Brian Paul [Wed, 30 Apr 2008 00:34:14 +0000 (18:34 -0600)]
gallium: init hw_key with memset() to silence valgrind warnings

We shouldn't be hashing with keys that have uninitialized memory.

16 years agogallium: updated comment in xm_flush_frontbuffer()
Brian Paul [Fri, 25 Apr 2008 23:50:48 +0000 (17:50 -0600)]
gallium: updated comment in xm_flush_frontbuffer()

16 years agogallium: test for new PIPE_ARCH_X86
Brian Paul [Fri, 25 Apr 2008 22:50:56 +0000 (16:50 -0600)]
gallium: test for new PIPE_ARCH_X86

16 years agogallium: flush pipe before updating bitmap texture
Brian Paul [Tue, 29 Apr 2008 23:29:33 +0000 (17:29 -0600)]
gallium: flush pipe before updating bitmap texture

Fixes duplicated text bug in progs/tests/texwrap.c

16 years agosilence p_debug.h:63: warning: ISO C forbids forward references to ‘enum’ types
Zack Rusin [Tue, 29 Apr 2008 21:21:10 +0000 (17:21 -0400)]
silence p_debug.h:63: warning: ISO C forbids forward references to ‘enum’ types

16 years agodisable GL_TEXTURE_1D at end of frame to fix failed assertion
Brian Paul [Tue, 29 Apr 2008 21:03:06 +0000 (15:03 -0600)]
disable GL_TEXTURE_1D at end of frame to fix failed assertion

16 years agogallium: declare pipe_format enum to silence warnings
Brian Paul [Tue, 29 Apr 2008 20:39:42 +0000 (14:39 -0600)]
gallium: declare pipe_format enum to silence warnings

16 years agogallium: add pack for _FLOAT formats to pack_ub
Keith Whitwell [Tue, 29 Apr 2008 20:30:31 +0000 (21:30 +0100)]
gallium: add pack for _FLOAT formats to pack_ub

16 years agogallium: fix pack for A1R5B5G5
Keith Whitwell [Tue, 29 Apr 2008 20:30:04 +0000 (21:30 +0100)]
gallium: fix pack for A1R5B5G5

16 years agogallium: add pack for A4R4G4B4
Keith Whitwell [Tue, 29 Apr 2008 20:05:48 +0000 (21:05 +0100)]
gallium: add pack for A4R4G4B4

16 years agogallium: add pack for A1R5B5G5
Keith Whitwell [Tue, 29 Apr 2008 19:42:35 +0000 (20:42 +0100)]
gallium: add pack for A1R5B5G5

16 years agogallium: add debug_print_format() make it easier to print format error messages
Keith Whitwell [Tue, 29 Apr 2008 19:33:37 +0000 (20:33 +0100)]
gallium: add debug_print_format() make it easier to print format error messages

16 years agogallium: added some assertions to be sure the blit's surface formats are suitable
Brian Paul [Tue, 29 Apr 2008 18:55:41 +0000 (12:55 -0600)]
gallium: added some assertions to be sure the blit's surface formats are suitable

16 years agogallium: added some assertions to st_render_texture() to check surface format
Brian Paul [Tue, 29 Apr 2008 18:54:52 +0000 (12:54 -0600)]
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.

16 years agogallium: fix broken GL_DEPTH_COMPONENT case in fallback_copy_texsubimage()
Brian Paul [Tue, 29 Apr 2008 18:53:37 +0000 (12:53 -0600)]
gallium: fix broken GL_DEPTH_COMPONENT case in fallback_copy_texsubimage()

Also, make sure surfaces are suitable for blitting before calling util_blit_pixels().

16 years agomesa: added _mesa_scale_and_bias_depth_uint()
Brian Paul [Tue, 29 Apr 2008 18:51:06 +0000 (12:51 -0600)]
mesa: added _mesa_scale_and_bias_depth_uint()

16 years agogallium: add \n to error strings
Brian Paul [Mon, 28 Apr 2008 22:33:15 +0000 (16:33 -0600)]
gallium: add \n to error strings

16 years agogallium: fix error msg typo
Brian Paul [Mon, 28 Apr 2008 22:32:42 +0000 (16:32 -0600)]
gallium: fix error msg typo

16 years agogallium: set border color
Roland Scheidegger [Tue, 29 Apr 2008 15:54:38 +0000 (17:54 +0200)]
gallium: set border color

16 years agomesa: explicitly delete textures before creating new ones
Brian Paul [Mon, 28 Apr 2008 20:20:11 +0000 (14:20 -0600)]
mesa: explicitly delete textures before creating new ones

Also, call glutDestroyWindow() upon exit.

16 years agogallium: fix incorrect level param in copy_image_data_to_texture()
Brian Paul [Mon, 28 Apr 2008 20:04:19 +0000 (14:04 -0600)]
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.

16 years agotgsi: make loop structure clearer, use x86_lea for increments
Keith Whitwell [Mon, 28 Apr 2008 17:50:31 +0000 (18:50 +0100)]
tgsi: make loop structure clearer, use x86_lea for increments

16 years agotsgi: add a makefile
Keith Whitwell [Mon, 28 Apr 2008 17:43:27 +0000 (18:43 +0100)]
tsgi: add a makefile

16 years agotranslate: squash warnings
Keith Whitwell [Fri, 25 Apr 2008 14:28:54 +0000 (15:28 +0100)]
translate: squash warnings

16 years agopb: remove unused variable, squash warning
Keith Whitwell [Fri, 25 Apr 2008 14:27:33 +0000 (15:27 +0100)]
pb: remove unused variable, squash warning