Commit Graph

38377 Commits

Author SHA1 Message Date
Eric Anholt 40aadafa91 i965: Add support for texturing with bias to i965 FS backend.
Fixes 5 piglit tests for bias.  Note that LOD is a 1.30 feature and
not yet supported.
2010-08-30 10:26:05 -07:00
José Fonseca f3eebb8465 glut: Silence missing initializer warning. 2010-08-30 14:12:01 +01:00
José Fonseca 4841c0a15a mesa: Return after assertion failure.
Addresses the warnings:
warning: ‘target’ may be used uninitialized in this function
warning: ‘target_string’ may be used uninitialized in this function
2010-08-30 13:59:24 +01:00
José Fonseca 0a6c908e0d gallivm: Compute the 4 texel offsets for linear filtering en ensemble. 2010-08-30 13:58:09 +01:00
José Fonseca ccd8b935e4 glsl: Silence unused variable warning. 2010-08-30 13:53:15 +01:00
José Fonseca 128237927d mesa: Fix _mesa_lookup_parameter_constant's return value.
Fixes gcc warning

  In function ‘_mesa_add_unnamed_constant’:
  warning: ‘pos’ may be used uninitialized in this function

but also what appears to be a bug.
2010-08-30 13:48:21 +01:00
José Fonseca e4c3e7f9d8 gallivm: Disable LLVM's pretty stack trace dumper.
By default LLVM adds a signal handler to output a pretty stack trace.
This signal handler is never removed, causing problems when unloading
the shared object where the gallium driver resides.

Thanks to Chris Li for finding this.
2010-08-30 13:27:28 +01:00
José Fonseca 7a08dbcf55 gallivm: Correct copy'n'pasted comments. 2010-08-30 13:27:03 +01:00
José Fonseca e18c7f68b4 gallivm: Fix lp_build_sum_vector.
The result is scalar, so when argument is zero/undef we can pass vector
zero/undef.

Also, support the scalar case.
2010-08-30 13:26:29 +01:00
Michal Krol 1bb97610e9 svga: Fix CMP translation for vertex shader targets.
SVGA3DOP_CMP is not supported for vertex shaders;
use SLT + LRP instead.
2010-08-30 13:01:58 +01:00
José Fonseca 5a70db6432 svga: Re-emit bound rendertargets and texture samplers at the beginning of every command buffer.
Only non null resources.

To ensure that relocations are emitted for every resource currently
referred.
2010-08-30 13:01:57 +01:00
Marek Olšák 007bac8331 st/mesa: set the MaxVarying GLSL constant 2010-08-30 13:27:36 +02:00
Marek Olšák 77dac1945f r300g: fix warning in winsys 2010-08-30 13:25:07 +02:00
Dave Airlie 57eecbbf6c r600g: add DST opcode support. 2010-08-30 16:22:54 +10:00
Dave Airlie 92f5c7a597 r600g: add SCS support. 2010-08-30 16:09:39 +10:00
Dave Airlie db92a03aac r600g: fix warning introduced by last commit. 2010-08-30 15:50:52 +10:00
Dave Airlie 47d5a19df1 r600g: add initial relative support to assembler
passes another ~20 piglits.

/me starts to run out low hanging fruit around now.
2010-08-30 15:47:49 +10:00
Ian Romanick a2711d6968 linker: Treat sized and unsized array types as the same
If two shaders contain variables declared with array types that have
the same base type but one is sized and the other is not, linking
should succeed.  I'm not super pleased with the way this is
implemented, and I am more convinced than ever that we need more
linker tests.  We especially need "negative" tests.

Fixes bugzilla #29697 and piglit test glsl-link-array-01.
2010-08-29 22:11:35 -07:00
Dave Airlie 4502b17901 r600g: add KILP support
passes glsl1-discard tests
2010-08-30 15:04:40 +10:00
Dave Airlie cb08b9fa84 r600g: fix SSG and op3 neg writing
8 more piglits, mainly the two SSG tests.
2010-08-30 14:22:12 +10:00
Dave Airlie 09547e1bce r600g : add basic loop support.
Adds BGNLOOP, BRK, CONT, ENDLOOP support, ported from r600c.

17 piglits more on r300g.tests.
2010-08-30 13:38:33 +10:00
Bas Nieuwenhuizen cd4bd4fb53 r600g: use the values from the correct literals
Created an array for literals as we should not always use the last declared literal.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-08-30 09:41:02 +10:00
Bas Nieuwenhuizen e77b1e777d r600g: added literals where needed for POW instruction
Fixes size calculation for the bytecode buffer.

Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-08-30 09:41:02 +10:00
Richard Li b3d41844c7 evergreen : fix shader const allocation and instruction bugs. 2010-08-29 19:27:46 -04:00
Vinson Lee 0c93e69b25 glsl: Initialize data in ast_function_expression::hir.
Completely initialize data that is passed to ir_constant constructor.

Fixes piglit glsl-orangebook-ch06-bump valgrind uninitialized variable
error on softpipe and llvmpipe.
2010-08-29 14:05:07 -07:00
Vinson Lee 30a0865528 glsl: Completely initialize value member in ir_constant constructor.
The
ir_constant::ir_constant(const struct glsl_type *type, exec_list *value_list)
did not completely initialize the entire value member.

Fixes piglit glsl-fs-sampler-numbering-2 valgrind uninitialized value
error in softpipe and llvmpipe.
2010-08-29 13:15:56 -07:00
Vinson Lee 2d0ef6bfee glsl: Initialize variable in ir_swizzle::constant_expression_value.
Complete initialize data passed to ir_constant constructor.

Fixes piglit glsl-mat-from-int-ctor-02 valgrind unintialized variable
error with softpipe and llvmpipe.
2010-08-29 12:19:57 -07:00
Vinson Lee b43611b79c glsl: Initialize data in read_constant.
Completely initialize data that is passed into a ir_constant constructor.

Fixes piglit glsl-fs-mix valgrind uninitialized variable error on
softpipe and llvmpipe.
2010-08-29 11:48:02 -07:00
Vinson Lee 0a46497a4e ir_to_mesa: Initialize variable in ir_to_mesa_visitor::visit.
Fixes piglit glsl-fs-loop valgrind uninitialized value error on softpipe
and llvmpipe.
2010-08-29 11:31:33 -07:00
Dave Airlie c48ae0b6ed r600g: drop file I added by mistake in a previous commit 2010-08-29 18:45:26 +10:00
Vinson Lee f67400d467 glsl: Initialize the rest of values of ir_constant::value.
Fixes valgrind uninitialized value errors in the piglit shader tests for
softpipe and llvmpipe.
2010-08-28 23:55:51 -07:00
Vinson Lee 182d635060 gallium: Remove unnecessary header from p_state.h.
Remove p_screen.h.
2010-08-28 22:15:37 -07:00
Vinson Lee 1fc396204b nvfx: Remove util_is_pot in favor of util_is_power_of_two.
This is a follow up to commit 89b2897220.
2010-08-28 22:12:55 -07:00
Vinson Lee b812ff8f9e util: Include missing header in u_draw.h.
Include p_state.h for complete type to pipe_draw_info.
2010-08-28 21:46:41 -07:00
Vinson Lee 1f3e6e9726 util: Add forward declaration in u_transfer.h. 2010-08-28 21:42:28 -07:00
Marek Olšák a922725118 r300g,u_blitter: use u_framebuffer
Removing another function duplication in u_blitter.
2010-08-29 06:16:53 +02:00
Marek Olšák 89b2897220 util: remove util_is_pot in favor of util_is_power_of_two
The function was duplicated.
2010-08-29 06:16:25 +02:00
Eric Anholt 735af3959f i965: Add initial support for texturing to the new FS backend.
Fixes 11 piglit tests.
2010-08-28 20:04:03 -07:00
Eric Anholt af62060ef2 i965: Add disasm for gen5 sampler messages. 2010-08-28 20:02:54 -07:00
Cedric Vivier 3d4597f9d4 i965: Move libdrm/C++ hack introduced in fa2deb3d to intel_context.h
Fixes build on Linux/GCC 4.4 as libdrm includes are also used by other
brw_fs_*.cpp files.

Bug #29855
2010-08-28 20:02:54 -07:00
Vinson Lee 2dfd348e33 st/mesa: Include missing header in st_mesa_to_tgsi.c.
Include p_screen.h for complete type to pipe_screen.
2010-08-28 14:24:42 -07:00
Vinson Lee d42b7d5f8d softpipe: Include missing header in sp_flush.c.
Include p_screen.h for complete type to pipe_screen.
2010-08-28 14:21:28 -07:00
Vinson Lee 9112e531d4 draw: Include missing header in draw_vs_llvm.c.
Include p_screen.h for completely type to pipe_screen.
2010-08-28 14:18:57 -07:00
Vinson Lee cf1e4b15a4 llvmpipe: Include missing header in lp_flush.c.
Include p_screen.h for complete type to pipe_screen.
2010-08-28 14:14:33 -07:00
Marek Olšák c5b8ba9368 r300g: fix blitting between 2D NPOT mipmaps
Even though MIP filtering is not supported, we can bind an arbitrary mipmap
as the zero mipmap level.

NPOT textures now follow GL_TEXTURE_BASE_LEVEL and GL_TEXTURE_MIN_LOD.

This fixes piglit/fbo-copyteximage.
2010-08-28 22:37:53 +02:00
Mathias Fröhlich c0f0eb8668 r300g: fix min/max lod computation 2010-08-28 18:17:30 +02:00
Marek Olšák 97cbb563f8 r300g: set the correct value in PVS_NUM_CNTLRS
As per docs.
2010-08-28 18:17:30 +02:00
Vinson Lee f7579f2f28 llvmpipe: Remove unnecessary header. 2010-08-28 00:29:02 -07:00
Ian Romanick 120d5a95cb glsl2: Decompose matrix comparison into vector operations 2010-08-27 17:41:16 -07:00
Jakob Bornecrantz 977f7d48ee trace: Don't try to dump the rgba array if null 2010-08-28 00:56:51 +01:00