Commit Graph

38220 Commits

Author SHA1 Message Date
Eric Anholt aa2f55883b mesa: Disable the debug spam for x86 CPU detection with a compile-time flag.
I don't know of any problems with CPU detection in years.  Don't spam
the user that was just looking to enable assertions with this stuff.
2010-08-25 23:43:21 -07:00
Eric Anholt 7af8f7f164 mesa: Move the x86 detection debug messages next to the detection. 2010-08-25 23:43:21 -07:00
Eric Anholt 0673b46933 mesa: Don't warn when the desired result of s3tc lib available occurs. 2010-08-25 23:43:21 -07:00
Vinson Lee d8ad10dc45 util: Include missing header in u_blit.h.
Include p_compiler.h for uint symbol.
Clean up forward declarations.
2010-08-25 23:37:27 -07:00
Vinson Lee 3e41029d6e util: Include missing header in u_bitmask.h.
Include p_compiler.h for boolean symbol.
2010-08-25 23:31:04 -07:00
Vinson Lee d2dd23e858 util: Include missing header in u_dirty_surfaces.h.
Include p_state.h for pipe_surface symbol.
2010-08-25 23:04:39 -07:00
Vinson Lee c7111f321c util: Add include guard in u_split_prim.h. 2010-08-25 22:55:15 -07:00
Vinson Lee cc3e322d96 util: Include missing headers in u_split_prim.h.
Include p_compiler.h for boolean symbol.
Include u_debug.h for assert symbol.
2010-08-25 22:51:15 -07:00
José Fonseca 43d94dba5f graw: Remove graw-null.
Pointless now that the graw tests can be built independently of any graw
implementation.
2010-08-26 06:47:24 +01:00
José Fonseca f0eb02af80 graw: Dynamically load graw libraries.
This allows to build multiple graws libs simultaneously and avoid
unnecessary rebuilds of the tests.

Also remove graw_util.c from inside the graw implementation -- it was
only being provided by one implementation, and graw tests were linking
against gallium anyway.
2010-08-26 06:44:34 +01:00
José Fonseca c32f87c39c scons: Fix old script compatability logic.
Sconscript could be invoked twice if specified in the command line.
2010-08-26 06:44:34 +01:00
Vinson Lee 58cfbd697d util: Include missing headers in u_tile.h.
Include p_format.h for enum pipe_format symbol.
Include p_state.h for pipe_box symbol.
2010-08-25 22:41:20 -07:00
Vinson Lee c65c86cfe7 util: Clean up header file inclusion in u_upload_mgr.h.
Remove p_defines.h.
Remove unnecessary forward declarations.
Add forward declaration for pipe_context.
2010-08-25 22:34:31 -07:00
Marek Olšák c1ab2c327e r300g: fix constant buffer upload once again for r3xx->r4xx 2010-08-26 07:19:10 +02:00
Vinson Lee fdf054a585 r600: Remove unnecessary headers. 2010-08-25 18:06:01 -07:00
Vinson Lee d430aea8bc r300: Remove unnecessary header. 2010-08-25 18:00:23 -07:00
Eric Anholt b2872ea353 Revert "mesa: Don't add 1 to GL_ACTIVE_UNIFORM_MAX_LENGTH."
This reverts commit 001a7bfdfc.  I
hadn't found the section of the spec clarifying that the old behavior
was right.  Reverting fixes the new version of the testcase, and the
Humus demos that could no longer find their uniforms.

Bug #29782
Bug #29783
2010-08-25 16:45:31 -07:00
Aras Pranckevicius 5226f8c7b0 glsl: fix crash with variable indexing into array in a struct
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2010-08-25 16:22:44 -07:00
Eric Anholt a1f2ac2b37 i965: Fix detection of implicit MOVs to message regs in brw_optimize.c.
Texcoords in AmbientApertureLighting were getting trashed since the
move of math arguments to implied moves, due to the logic for
detecting ALU message reg writes overriding the logic for SEND
implicit message reg writes.
2010-08-25 16:03:56 -07:00
Marcin Slusarz a49167c1c0 nouveau: handle early initialization errors
handle very early errors in pipe_screen creation (failure of
nouveau_screen_init in nv50_screen_create)

Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-08-26 00:28:01 +02:00
Jerome Glisse bd25e23bf3 r600g: simplify states
Directly build PM4 packet, avoid using malloc (no states are
bigger than 128 dwords), remove unecessary informations,
remove pm4 building in favor of prebuild pm4 packet.

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-25 17:41:50 -04:00
Eric Anholt b5c07b9226 mesa: Remove now-unused _mesa_add_sampler().
We do the generation of "what sampler number within Parameters are we"
right in ir_to_mesa.cpp, instead of repeatedly walking the existing
list to find out.
2010-08-25 12:38:32 -07:00
Eric Anholt aa452e20bf ir_to_mesa: Add support for samplers in structures.
Fixes:
glsl-fs-uniform-sampler-struct
glsl-fs-sampler-numbering-3
Bug #29690
2010-08-25 12:38:27 -07:00
Eric Anholt 9ab1332d74 mesa: Remove now-unused _mesa_add_uniform.
We had to inline it to avoid doing a double-lookup in the process of
adding assertion checks.
2010-08-25 12:38:27 -07:00
Eric Anholt 0924ba0c34 ir_to_mesa: Convert this code to using linker.cpp's uniform locations.
Fixes: glsl-fs-uniform-array-4.
2010-08-25 12:38:26 -07:00
Eric Anholt 45388b5467 glsl: Make uniform linking generate separate uniforms for struct members.
This is a step towards making the linker code usable as our uniform
setup, instead of having it wedged into ir_to_mesa.cpp.
2010-08-25 12:38:26 -07:00
Eric Anholt ea2231ff5e mesa: Remove the "Used" flag in gl_program_parameter.
This was in place for uniform handling, but nothing actually needs the
value now, since presence in a parameter list indicates that the
uniform was used as far as the linker was concerned.
2010-08-25 12:38:26 -07:00
Marek Olšák bcca7fd5d5 r300/compiler: emulate relative addressing with negative offsets in VS
3 more piglits, cool.
2010-08-25 21:22:56 +02:00
Vinson Lee 721954c334 nvfx: Set pointer to NULL after free.
Guard against potential use after free.
2010-08-25 11:22:55 -07:00
Marek Olšák dc27515780 r300g: fix potentially uninitialized variables in create_rs_state
It had no impact on correctness, though.

Reported by Vinson Lee.
2010-08-25 20:10:06 +02:00
Vinson Lee 92cfcc2afd st/mesa: Remove unnecessary header. 2010-08-25 10:06:05 -07:00
Keith Whitwell d4bfd8a24a llvmpipe: fix bad patch application 2010-08-25 18:01:51 +01:00
Vinson Lee 14ac294e1a llvmpipe: Remove unnecessary header. 2010-08-25 09:55:07 -07:00
Aras Pranckevicius 653ddaab26 glsl/mesa: fixes for MSVC
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-08-25 09:21:10 -06:00
Kristian Høgsberg f301932dba intel: Support EGL_MESA_image_drm 2010-08-25 09:17:48 -04:00
Kristian Høgsberg 9087ba1280 intel: Take an intel_screen pointer in intel_alloc_region_* functions 2010-08-25 09:17:48 -04:00
Kristian Høgsberg 5aaa53e66c egl_dri2: Add support for MESA_image_drm 2010-08-25 09:17:48 -04:00
Kristian Høgsberg b7a8893a24 egl: Add EGL_MESA_drm_image extension
Create EGLImages from DRM buffer handles.
2010-08-25 09:17:47 -04:00
Keith Whitwell 29bcbf5e79 llvmpipe: track drawing region as a single u_rect 2010-08-25 10:29:27 +01:00
Keith Whitwell d808f7b53e llvmpipe: better triangle debugging 2010-08-25 10:29:27 +01:00
Keith Whitwell c25151dd6a llvmpipe: cull zero-area triangles early 2010-08-25 10:29:27 +01:00
Keith Whitwell 98f3ff8f4a llvmpipe: more rasterization counters 2010-08-25 10:29:27 +01:00
Keith Whitwell 5a45e53df4 llvmpipe: move some fence functions into lp_screen.c 2010-08-25 10:29:27 +01:00
Keith Whitwell 1e926fe42a llvmpipe: wake all threads waiting on a fence 2010-08-25 10:29:27 +01:00
Keith Whitwell b6e03eafe3 llvmpipe: fence debugging, add llvmpipe_finish 2010-08-25 10:29:27 +01:00
Keith Whitwell 285ea417ef tgsi: helper for dumping tokens as hex 2010-08-25 10:29:26 +01:00
Keith Whitwell 6c0dc4bafb draw: specialized cliptesting routines 2010-08-25 10:29:21 +01:00
Keith Whitwell 4cef308726 util: add rectangle helpers to u_rect.h
This begins a process of repurposing this file.  The existing usage is
as a header file for some software blit fallbacks, which should be
moved to a more appropriately named header.
2010-08-25 10:07:36 +01:00
Keith Whitwell bc3cff2a4f gallium/docs: notes on scissor state 2010-08-25 10:07:36 +01:00
Keith Whitwell f77daaa882 llvmpipe: remove dead code 2010-08-25 10:07:36 +01:00