mesa.git
16 years agomesa: No getenv on WinCE.
José Fonseca [Mon, 23 Jun 2008 17:35:50 +0000 (02:35 +0900)]
mesa: No getenv on WinCE.

16 years agogallium: Use the more portable PIPE_ARCH_* PIPE_CC_* macros instead of ad-hoc ones.
José Fonseca [Mon, 23 Jun 2008 16:26:22 +0000 (01:26 +0900)]
gallium: Use the more portable PIPE_ARCH_* PIPE_CC_* macros instead of ad-hoc ones.

16 years agogallium: WinCE does not have cosf, sinf, etc.
José Fonseca [Mon, 23 Jun 2008 16:25:20 +0000 (01:25 +0900)]
gallium: WinCE does not have cosf, sinf, etc.

16 years agogallium: in softpipe_get_tex_surface() use the pitch specified in the softpipe_textur...
Brian Paul [Mon, 23 Jun 2008 17:27:44 +0000 (11:27 -0600)]
gallium: in softpipe_get_tex_surface() use the pitch specified in the softpipe_texture object.

Fixes a pitch/width mix-up.

16 years agoi915: Add render and texture support for tiled texture and buffers
Jakob Bornecrantz [Mon, 23 Jun 2008 15:57:45 +0000 (17:57 +0200)]
i915: Add render and texture support for tiled texture and buffers

This is step towards tiled textures and buffer support for
i915. But the tiled attribute is never set.

16 years agogallium: fix-up inverted do_copy_texsubimage()
Brian Paul [Mon, 23 Jun 2008 15:50:09 +0000 (09:50 -0600)]
gallium: fix-up inverted do_copy_texsubimage()

The logic/arithmetic for inverting the src image is a bit simpler now.

16 years agogallium: fix Y-inverted copies
Brian Paul [Mon, 23 Jun 2008 15:47:12 +0000 (09:47 -0600)]
gallium: fix Y-inverted copies

Don't require the caller to pass a non-intuitive negative src_y coord anymore
when doing a src-inverted copy.

16 years agogallium: remove dead/prototype code
Brian Paul [Mon, 23 Jun 2008 15:07:56 +0000 (09:07 -0600)]
gallium: remove dead/prototype code

16 years agogallium: change surface_copy()'s do_flip to boolean
Brian Paul [Mon, 23 Jun 2008 14:54:16 +0000 (08:54 -0600)]
gallium: change surface_copy()'s do_flip to boolean

16 years agogallium: fix bad srcy coord if do_flip
Brian Paul [Mon, 23 Jun 2008 14:51:00 +0000 (08:51 -0600)]
gallium: fix bad srcy coord if do_flip

16 years agogallium: fix bad srcy coord if do_flip
Brian Paul [Mon, 23 Jun 2008 14:44:30 +0000 (08:44 -0600)]
gallium: fix bad srcy coord if do_flip

16 years agogallium: added some assertions
Brian Paul [Mon, 23 Jun 2008 14:35:41 +0000 (08:35 -0600)]
gallium: added some assertions

16 years agoDon't make libmesa.a or libglapi.a depend on asm_subdirs
Brian Paul [Mon, 23 Jun 2008 14:14:14 +0000 (08:14 -0600)]
Don't make libmesa.a or libglapi.a depend on asm_subdirs

Since the asm_subdirs target does not actually create a file, make will
always consider that it needs to be rebuilt. If libmesa.a and libglapi.a
have asm_subdirs as a prerequisite, then they will always need to be
rebuilt, too. The correct order will be preserved by the default target,
though.

This should fix #16358.

Conflicts:

src/mesa/Makefile

cherry-picked from master

16 years agoCreate $(TOP)/$(LIB_DIR) for install, too
Dan Nicholson [Mon, 23 Jun 2008 03:19:35 +0000 (20:19 -0700)]
Create $(TOP)/$(LIB_DIR) for install, too

If `make install' is run without running `make' first, the $(LIB_DIR)
will not be created. This also changes the mkdir a little bit so that it
isn't run if necessary and added `-p' so that it is immune to races.

16 years agoEnsure all objects are built when installing DRI
Dan Nicholson [Mon, 23 Jun 2008 03:29:45 +0000 (20:29 -0700)]
Ensure all objects are built when installing DRI

16 years agoutil: Blit can now copy from texture to surface
Jakob Bornecrantz [Mon, 23 Jun 2008 14:01:41 +0000 (16:01 +0200)]
util: Blit can now copy from texture to surface

16 years agogallium: Add accessor functions to get textures from a st_framebuffer
Jakob Bornecrantz [Mon, 23 Jun 2008 13:54:25 +0000 (15:54 +0200)]
gallium: Add accessor functions to get textures from a st_framebuffer

16 years agoscons: Update to target WinCE 6.0.
José Fonseca [Mon, 23 Jun 2008 03:49:45 +0000 (12:49 +0900)]
scons: Update to target WinCE 6.0.

16 years agogallium: Fix warning in u_draw_quad.h
Jakob Bornecrantz [Mon, 23 Jun 2008 10:31:46 +0000 (12:31 +0200)]
gallium: Fix warning in u_draw_quad.h

16 years agoi915: Removed level_offset from i915_texture
Jakob Bornecrantz [Thu, 19 Jun 2008 18:28:20 +0000 (20:28 +0200)]
i915: Removed level_offset from i915_texture

All offsets are now on image_offset.

16 years agodraw: fix non-i386 builds
Keith Whitwell [Sun, 22 Jun 2008 12:14:29 +0000 (13:14 +0100)]
draw: fix non-i386 builds

16 years agogallium: s/feadback/feedback/, duh
Brian [Sat, 21 Jun 2008 00:29:23 +0000 (18:29 -0600)]
gallium: s/feadback/feedback/, duh

16 years agogallium: fix invalid call to draw_set_mapped_constant_buffer()
Brian Paul [Fri, 20 Jun 2008 23:28:42 +0000 (17:28 -0600)]
gallium: fix invalid call to draw_set_mapped_constant_buffer()

We were indexing sp_constants[i] outside the loop so i was 2.
Replace i with PIPE_SHADER_VERTEX.
Also, replace magic '2' with PIPE_SHADER_TYPES in a few places.

16 years agogallium: fix some surface usage bugs
Brian Paul [Fri, 20 Jun 2008 21:58:19 +0000 (15:58 -0600)]
gallium: fix some surface usage bugs

When a surface is created with GPU_WRITE that really means "GPU render"
and that can involve reads (blending).  Set surface usage to
PIPE_BUFFER_USAGE_CPU_READ + WRITE.  Fixes progs/demos/lodbias demo.

Also, mark texture as 'modified' when mapped for writing so that the tile
cache can know when to freshen a cached tile.  Fixes glTexSubImage2D().

16 years agoegl: added cpp assertions/sanity checks
Brian Paul [Fri, 20 Jun 2008 20:30:21 +0000 (14:30 -0600)]
egl: added cpp assertions/sanity checks

16 years agomesa: init ctx->RenderMode
Brian Paul [Fri, 20 Jun 2008 20:29:49 +0000 (14:29 -0600)]
mesa: init ctx->RenderMode

16 years agoegl: added null ptr check
Brian Paul [Fri, 20 Jun 2008 20:28:59 +0000 (14:28 -0600)]
egl: added null ptr check

16 years agomesa: GL_BYTE vertex/texcoord arrays
Brian Paul [Fri, 20 Jun 2008 17:49:25 +0000 (11:49 -0600)]
mesa: GL_BYTE vertex/texcoord arrays

16 years agomesa: initial support for fixed-pt vertex arrays
Brian Paul [Fri, 20 Jun 2008 17:32:22 +0000 (11:32 -0600)]
mesa: initial support for fixed-pt vertex arrays

16 years agomesa: refactor: move initialization of DefaultPacking state.
Brian Paul [Fri, 20 Jun 2008 17:31:05 +0000 (11:31 -0600)]
mesa: refactor: move initialization of DefaultPacking state.

16 years agogallium: always need st_init-blit()
Brian Paul [Fri, 20 Jun 2008 17:30:43 +0000 (11:30 -0600)]
gallium: always need st_init-blit()

16 years agogallium: remove unneeded #include
Brian Paul [Fri, 20 Jun 2008 17:30:21 +0000 (11:30 -0600)]
gallium: remove unneeded #include

16 years agomesa: fix errors in prev commit
Brian Paul [Fri, 20 Jun 2008 17:15:30 +0000 (11:15 -0600)]
mesa: fix errors in prev commit

16 years agomesa: revamp glBlendFunc loopback
Brian Paul [Fri, 20 Jun 2008 17:05:00 +0000 (11:05 -0600)]
mesa: revamp glBlendFunc loopback

16 years agomesa: added _vbo_Materialfv()
Brian Paul [Fri, 20 Jun 2008 17:04:37 +0000 (11:04 -0600)]
mesa: added _vbo_Materialfv()

16 years agomesa: _vbo_Color4f, _vbo_Normal3f, _vbo_MultiTexCoord4f functions
Brian Paul [Fri, 20 Jun 2008 16:48:14 +0000 (10:48 -0600)]
mesa: _vbo_Color4f, _vbo_Normal3f, _vbo_MultiTexCoord4f functions

16 years agomesa: fix some FEATURE_x tests
Brian Paul [Fri, 20 Jun 2008 16:47:38 +0000 (10:47 -0600)]
mesa: fix some FEATURE_x tests

16 years agoegl: added null ptr checks
Brian Paul [Fri, 20 Jun 2008 16:20:47 +0000 (10:20 -0600)]
egl: added null ptr checks

16 years agoegl: implment EGL_LARGEST_PBUFFER query
Brian Paul [Fri, 20 Jun 2008 16:20:25 +0000 (10:20 -0600)]
egl: implment EGL_LARGEST_PBUFFER query

16 years agoegl: added null ptr check
Brian Paul [Fri, 20 Jun 2008 16:20:06 +0000 (10:20 -0600)]
egl: added null ptr check

16 years agoegl: default API should be ES
Brian Paul [Fri, 20 Jun 2008 16:19:51 +0000 (10:19 -0600)]
egl: default API should be ES

16 years agogallium: assorted FEATURE tests
Brian Paul [Fri, 20 Jun 2008 14:09:59 +0000 (08:09 -0600)]
gallium: assorted FEATURE tests

16 years agogallium: remove unneeded #include
Brian Paul [Fri, 20 Jun 2008 14:09:46 +0000 (08:09 -0600)]
gallium: remove unneeded #include

16 years agomesa: test for FEATURE_ATI_fragment_shader
Brian Paul [Fri, 20 Jun 2008 14:07:38 +0000 (08:07 -0600)]
mesa: test for FEATURE_ATI_fragment_shader

16 years agoegl: fix assorted context-related bugs
Brian Paul [Fri, 20 Jun 2008 03:19:33 +0000 (21:19 -0600)]
egl: fix assorted context-related bugs

Move memset() to proper place.
Added EGL_CONTEXT_CLIENT_VERSION query.
Fix bad return EGL_FALSE -> EGL_TRUE.

16 years agogallium: new st_api.c file with token symbol for identifying the API
Brian Paul [Thu, 19 Jun 2008 22:15:56 +0000 (16:15 -0600)]
gallium: new st_api.c file with token symbol for identifying the API

16 years agogallium: remove unused vars
Brian Paul [Thu, 19 Jun 2008 22:15:09 +0000 (16:15 -0600)]
gallium: remove unused vars

16 years agoegl: use dlsym() to try to identify APIs
Brian Paul [Thu, 19 Jun 2008 22:12:17 +0000 (16:12 -0600)]
egl: use dlsym() to try to identify APIs

16 years agoegl: clean up prototype code, new _eglFindAPIs() function.
Brian Paul [Thu, 19 Jun 2008 22:06:56 +0000 (16:06 -0600)]
egl: clean up prototype code, new _eglFindAPIs() function.

16 years agoi915: Fixed cubemap layouts
Jakob Bornecrantz [Thu, 19 Jun 2008 15:09:09 +0000 (17:09 +0200)]
i915: Fixed cubemap layouts

Apprently we shouldn't do all the advanced layout
operation for none compressed formats.

The compressed code was also broken, its currently
disabled, but should be fixed once i915simple starts
to support compressed formats.

16 years agogallium: Handle malloc failure.
José Fonseca [Thu, 19 Jun 2008 13:57:33 +0000 (22:57 +0900)]
gallium: Handle malloc failure.

16 years agoi915: Refractored and clean up i915_texture.c
Jakob Bornecrantz [Thu, 19 Jun 2008 12:42:17 +0000 (14:42 +0200)]
i915: Refractored and clean up i915_texture.c

16 years agogallium: Add extra parenthesis as advised by gcc.
José Fonseca [Thu, 19 Jun 2008 12:16:16 +0000 (21:16 +0900)]
gallium: Add extra parenthesis as advised by gcc.

16 years agoutil: Add missing format names.
Michal Krol [Thu, 19 Jun 2008 12:06:28 +0000 (14:06 +0200)]
util: Add missing format names.

16 years agodraw: Fix MSVC integer size conversion warning.
José Fonseca [Thu, 12 Jun 2008 14:34:21 +0000 (23:34 +0900)]
draw: Fix MSVC integer size conversion warning.

16 years agoParse the section:offset instead of the rva+base when reading mapfiles.
José Fonseca [Thu, 12 Jun 2008 13:19:17 +0000 (22:19 +0900)]
Parse the section:offset instead of the rva+base when reading mapfiles.

16 years agogallium: additional fixes to ensure even number of vertices per buffer
Brian Paul [Wed, 18 Jun 2008 21:08:19 +0000 (15:08 -0600)]
gallium: additional fixes to ensure even number of vertices per buffer

16 years agogallium: split long prims into chunks with an even number of vertices
Brian Paul [Wed, 18 Jun 2008 20:50:35 +0000 (14:50 -0600)]
gallium: split long prims into chunks with an even number of vertices

This fixes culling "parity" errors when splitting long tri strips.  Splitting
strips into chunks with an odd number of vertices causes front/back-face
orientation to get reversed and upsets culling.

16 years agomesa: Fix bug in _mesa_swizzle_ubyte_image
Brian Paul [Wed, 18 Jun 2008 17:43:06 +0000 (19:43 +0200)]
mesa: Fix bug in _mesa_swizzle_ubyte_image

16 years agotests: Added a test for a strange bug in texstore_a8
Jakob Bornecrantz [Wed, 18 Jun 2008 16:35:11 +0000 (18:35 +0200)]
tests: Added a test for a strange bug in texstore_a8

16 years agomesa: add fwd decl of fill_in_entrypoint_offset()
Brian Paul [Wed, 18 Jun 2008 17:00:43 +0000 (11:00 -0600)]
mesa: add fwd decl of fill_in_entrypoint_offset()

16 years agogallium: added new st_set_framebuffer_surface()
Brian Paul [Wed, 18 Jun 2008 16:20:13 +0000 (10:20 -0600)]
gallium: added new st_set_framebuffer_surface()

This allows the winsys to explicitly specify gallium surfaces for a
framebuffer object.

16 years agomesa: fix ReadBuffer initialization
Brian Paul [Wed, 18 Jun 2008 15:30:13 +0000 (09:30 -0600)]
mesa: fix ReadBuffer initialization

16 years agoegl: use RTLD_LAZY
Brian Paul [Wed, 18 Jun 2008 15:21:28 +0000 (09:21 -0600)]
egl: use RTLD_LAZY

16 years agoegl: omit libmesa.a glapi.c from library
Brian Paul [Wed, 18 Jun 2008 15:21:09 +0000 (09:21 -0600)]
egl: omit libmesa.a glapi.c from library

16 years agogallium: remove duplicated u_mm.c in file list
Brian Paul [Tue, 17 Jun 2008 22:58:22 +0000 (16:58 -0600)]
gallium: remove duplicated u_mm.c in file list

16 years agogallium: more FEATURE_x tests
Brian Paul [Tue, 17 Jun 2008 22:57:02 +0000 (16:57 -0600)]
gallium: more FEATURE_x tests

16 years agomesa: FEATURE_dispatch to control dispatch table usage
Brian Paul [Tue, 17 Jun 2008 22:56:32 +0000 (16:56 -0600)]
mesa: FEATURE_dispatch to control dispatch table usage

16 years agoegl: call st_get_proc_address()
Brian Paul [Tue, 17 Jun 2008 20:28:07 +0000 (14:28 -0600)]
egl: call st_get_proc_address()

16 years agogallium: added st_get_proc_address()
Brian Paul [Tue, 17 Jun 2008 20:27:36 +0000 (14:27 -0600)]
gallium: added st_get_proc_address()

16 years agomesa: refactor: move GetProcAddress code from glapi.c into new glapi_getproc.c file
Brian Paul [Tue, 17 Jun 2008 19:23:32 +0000 (13:23 -0600)]
mesa: refactor: move GetProcAddress code from glapi.c into new glapi_getproc.c file

16 years agogallium: added FEATURE_x tests
Brian Paul [Tue, 17 Jun 2008 19:13:34 +0000 (13:13 -0600)]
gallium: added FEATURE_x tests

16 years agomesa: s/GL_POLYGON+1/PRIM_OUTSIDE_BEGIN_END/
Brian Paul [Tue, 17 Jun 2008 17:31:45 +0000 (11:31 -0600)]
mesa: s/GL_POLYGON+1/PRIM_OUTSIDE_BEGIN_END/

16 years agomesa: add parenthesis
Brian Paul [Tue, 17 Jun 2008 17:29:59 +0000 (11:29 -0600)]
mesa: add parenthesis

16 years agomesa: _mesa_texstore_s8_z24 now supports depth only uploads
Jakob Bornecrantz [Wed, 18 Jun 2008 09:38:12 +0000 (11:38 +0200)]
mesa: _mesa_texstore_s8_z24 now supports depth only uploads

16 years agogallium: Remove PIPE_FORMAT_A8UB8UG8SR8S_NORM definition.
Michal Krol [Wed, 18 Jun 2008 06:51:38 +0000 (08:51 +0200)]
gallium: Remove PIPE_FORMAT_A8UB8UG8SR8S_NORM definition.

16 years agoi915: Fix for s8_z24 textures not being shown
Jakob Bornecrantz [Tue, 17 Jun 2008 23:45:21 +0000 (01:45 +0200)]
i915: Fix for s8_z24 textures not being shown

16 years agomesa: Added _mesa_texstore_s8_z24
Jakob Bornecrantz [Tue, 17 Jun 2008 23:39:46 +0000 (01:39 +0200)]
mesa: Added _mesa_texstore_s8_z24

16 years agomesa: fix inconsistent use of GL_UNSIGNED_INT vs. GL_UNSIGNED_INT_24_8_EXT for Z...
Brian Paul [Tue, 17 Jun 2008 22:43:48 +0000 (16:43 -0600)]
mesa: fix inconsistent use of GL_UNSIGNED_INT vs. GL_UNSIGNED_INT_24_8_EXT for Z unpacking

16 years agogallium: Add facilities for mixed pipe formats.
Michal Krol [Tue, 17 Jun 2008 19:43:41 +0000 (21:43 +0200)]
gallium: Add facilities for mixed pipe formats.

16 years agogallium: need to flush bitmap cache when raster color changes
Brian Paul [Tue, 17 Jun 2008 18:20:22 +0000 (12:20 -0600)]
gallium: need to flush bitmap cache when raster color changes

16 years agogallium: check if sampler->max_lod < sampler->min_lod
Brian Paul [Tue, 17 Jun 2008 16:28:00 +0000 (10:28 -0600)]
gallium: check if sampler->max_lod < sampler->min_lod

16 years agomesa: make mm.c use unsigned ints for offsets.
Brian Paul [Tue, 17 Jun 2008 16:11:53 +0000 (10:11 -0600)]
mesa: make mm.c use unsigned ints for offsets.

If you have a GPU using this code and it has the offsets up in this space,
this fails.

cherry-picked from master

16 years agoi915: Made region pool a slabpool
Jakob Bornecrantz [Tue, 17 Jun 2008 15:46:45 +0000 (17:46 +0200)]
i915: Made region pool a slabpool

16 years agoi915: Max and Min lod now works
Jakob Bornecrantz [Tue, 17 Jun 2008 13:47:01 +0000 (15:47 +0200)]
i915: Max and Min lod now works

16 years agoadded ARCH_FLAGS
seventh guardian [Mon, 16 Jun 2008 21:10:14 +0000 (15:10 -0600)]
added ARCH_FLAGS

16 years agogit: Updated .gitignore files
Jakob Bornecrantz [Mon, 16 Jun 2008 10:20:17 +0000 (12:20 +0200)]
git: Updated .gitignore files

16 years agoutil: Use pf_get_size().
Michal Krol [Fri, 13 Jun 2008 15:22:11 +0000 (17:22 +0200)]
util: Use pf_get_size().

16 years agomesa: move some glapi bits around
Brian Paul [Fri, 13 Jun 2008 22:45:15 +0000 (16:45 -0600)]
mesa: move some glapi bits around

Move _glapi_proc typedef from glapitable.h to glapi.h
Also, don't include glapitable.h from glapi.h
Before we were including the huge glapitable.h file in every .c file.

16 years agomesa: remove some temp debug code
Brian Paul [Fri, 13 Jun 2008 20:13:25 +0000 (14:13 -0600)]
mesa: remove some temp debug code

16 years agomesa: check FEATURE_ARB_occlusion_query
Brian Paul [Fri, 13 Jun 2008 19:56:53 +0000 (13:56 -0600)]
mesa: check FEATURE_ARB_occlusion_query

16 years agoegl: added a debug msg
Brian Paul [Fri, 13 Jun 2008 19:56:31 +0000 (13:56 -0600)]
egl: added a debug msg

16 years agoi915: Improved the not used tile code
Jakob Bornecrantz [Fri, 13 Jun 2008 18:46:14 +0000 (20:46 +0200)]
i915: Improved the not used tile code

16 years agotrivial: Update clear-undefined
Jakob Bornecrantz [Fri, 13 Jun 2008 17:18:56 +0000 (19:18 +0200)]
trivial: Update clear-undefined

16 years agomesa: Fix libglapi.a build for dri
Jakob Bornecrantz [Fri, 13 Jun 2008 17:13:35 +0000 (19:13 +0200)]
mesa: Fix libglapi.a build for dri

16 years agoi915: Fix offsets not being used for surface targets
Jakob Bornecrantz [Fri, 13 Jun 2008 17:07:29 +0000 (19:07 +0200)]
i915: Fix offsets not being used for surface targets

16 years agoi915: Fix most of the clear problems
Jakob Bornecrantz [Fri, 13 Jun 2008 17:03:51 +0000 (19:03 +0200)]
i915: Fix most of the clear problems
trivial/clear-undefined still fails

16 years agotrival: Added test for undefined context of buffer
Jakob Bornecrantz [Fri, 13 Jun 2008 15:42:44 +0000 (17:42 +0200)]
trival: Added test for undefined context of buffer

16 years agogallium: another attempt at fixing libglapi.a compilation for DRI builds
Brian Paul [Fri, 13 Jun 2008 15:15:07 +0000 (09:15 -0600)]
gallium: another attempt at fixing libglapi.a compilation for DRI builds

If building for DRI, make a dummy/empty libglapi.a for now.

16 years agomesa: fix typo: s/stacks/stack/
Brian Paul [Fri, 13 Jun 2008 15:10:09 +0000 (09:10 -0600)]
mesa: fix typo: s/stacks/stack/