Keith Whitwell
75799b8d02
llvmpipe: remove unused file
2010-10-17 19:11:47 -07:00
Keith Whitwell
0072acd447
Merge remote branch 'origin/master' into lp-setup-llvm
...
Conflicts:
src/gallium/drivers/llvmpipe/lp_setup_coef.c
src/gallium/drivers/llvmpipe/lp_setup_coef.h
src/gallium/drivers/llvmpipe/lp_setup_coef_intrin.c
src/gallium/drivers/llvmpipe/lp_setup_point.c
src/gallium/drivers/llvmpipe/lp_setup_tri.c
src/gallium/drivers/llvmpipe/lp_state_derived.c
src/gallium/drivers/llvmpipe/lp_state_fs.h
2010-10-17 19:09:42 -07:00
Keith Whitwell
ca2b2ac131
llvmpipe: fail cleanly on malloc failure in lp_setup_alloc_triangle
2010-10-17 18:48:11 -07:00
Keith Whitwell
543fb77dde
llvmpipe: remove setup fallback path
2010-10-17 18:29:28 -07:00
José Fonseca
4dfb43c6a6
gallivm: Comment lp_build_insert_new_block().
2010-10-17 18:23:18 -07:00
Dave Airlie
5b966f58e3
r600g: set tiling bits in hw state
2010-10-18 09:25:22 +10:00
Dave Airlie
7b3fa03883
r600g: get tiling info from kernel
2010-10-18 09:25:22 +10:00
Dave Airlie
e8e20313af
r600g: add defines for tiling
2010-10-18 09:25:22 +10:00
Dave Airlie
82114ac02a
r600g: switch to a common formats.h file since they are in different regs
2010-10-18 09:13:46 +10:00
Vinson Lee
c9d297162a
llvmpipe: Return non-zero exit code for lp_test_round failures.
2010-10-17 14:09:53 -07:00
José Fonseca
4afad7d3ed
llvmpipe: Initialize bld ctx via lp_build_context_init instead of ad-hoc and broken code.
2010-10-17 10:15:15 -07:00
José Fonseca
a0add0446c
llvmpipe: Fix bad refactoring.
...
'i' and 'chan' have random values here, which could cause a buffer
overflow in debug builds, if chan > 4.
2010-10-17 09:58:04 -07:00
José Fonseca
dc5bdbe0f9
gallivm: Fix SoA cubemap derivative computation.
...
Derivatives are now scalar.
Broken since 17dbd41cf2 .
2010-10-17 09:43:18 -07:00
José Fonseca
709699d2e2
llvmpipe: Ensure z_shift and z_width is initialized.
2010-10-17 07:45:08 -07:00
José Fonseca
914b0d34e8
llvmpipe: Fix depth-stencil regression.
...
If stencil is enabled then we need to load the z_dst, even if depth
testing is disabled.
This fixes reflect mesa demo.
2010-10-17 07:22:34 -07:00
Dave Airlie
98b3f27439
r600g: add evergreen ARL support.
...
Thanks to Alex Deucher for pointing out the FLT to int conversion is necessary
and writing an initial patch, this brings about 20 piglits, and I think this
is the last piece to make evergreen and r600 equal in terms of features.
2010-10-17 16:48:30 +10:00
Brian Paul
46c2ee4fad
gallivm: use util_snprintf()
2010-10-15 17:32:23 -06:00
Brian Paul
81c27dbfb9
st/mesa: update function name, comments
2010-10-15 17:24:43 -06:00
Brian Paul
fa5309f0b0
st/mesa: use GLuint to avoid problem w/ uint not defined on mingw32
2010-10-15 17:18:39 -06:00
Brian Paul
cba65f7e0e
st/mesa: reformatting in st_cb_drawpixels.c
2010-10-15 17:01:56 -06:00
Brian Paul
61a467e515
st/mesa: fix regressions in glDrawPixels(GL_STENCIL_INDEX)
...
We need to keep track of three different fragment shaders: Z-only, stencil-
only, and Z+stencil. Before, we were only keeping track of the first one
we encountered.
2010-10-15 16:54:03 -06:00
Brian Paul
b2578ef873
glsl: add ir_unop_round_even case to silence unhandled enum warning
2010-10-15 15:44:01 -06:00
Brian Paul
fb8f3d7711
gallivm: added lp_build_load_volatile()
...
There's no LLVM C LLVMBuildLoadVolatile() function so roll our own.
Not used anywhere at this time but can come in handy during debugging.
2010-10-15 15:40:33 -06:00
Brian Paul
991f0c2763
gallivm: added lp_build_print_vec4()
2010-10-15 15:40:33 -06:00
Eric Anholt
81d0a1fb3f
i965: Set the type of the null register to fix gen6 FS comparisons.
...
We often use reg_null as the destination when setting up the flag
regs. However, on gen6 there aren't general implicit conversions to
destination types from src types, so the comparison to produce the
flag regs would be done on the integer result interpreted as a float.
Hilarity ensued.
Fixes 20 piglit cases.
2010-10-15 13:13:56 -07:00
Ian Romanick
20b39c7760
i965: Fix indentation after commit 3322fbaf
2010-10-15 12:11:03 -07:00
Ian Romanick
f29ff6efa6
linker: Trivial indention fix
2010-10-15 12:11:03 -07:00
Jakob Bornecrantz
eb7cf3d2a6
target-helpers: Remove per target software wrapper check
...
Instead of having a NAME_SOFTWARE check just use the GALLIUM_DRIVER
instead but set the default to native which is the same as not wrapped.
2010-10-15 19:13:00 +01:00
Jakob Bornecrantz
af729571eb
egl: Remove unnecessary headers
2010-10-15 19:13:00 +01:00
Jakob Bornecrantz
44207ff71b
wrapper: Add a way to dewrap a pipe screen without destroying it
2010-10-15 19:13:00 +01:00
Jakob Bornecrantz
f8f3baa43a
wrapper: Fix spelling
2010-10-15 19:13:00 +01:00
Jakob Bornecrantz
992e7c7279
llvmpipe: Move makefile include to before targets
...
Or plain make inside of the directory wont build libllvmpipe.a
2010-10-15 19:13:00 +01:00
Xavier Chantry
9c439e3c7a
nv50: apply layout_mask to tile_flags
...
The tile_flags now store more than just nv50 page table entry bits.
2010-10-15 15:54:02 +02:00
Keith Whitwell
ac98519c4e
llvmpipe: validate color outputs against key->nr_cbufs
2010-10-15 14:49:13 +01:00
Keith Whitwell
ffab84c9a2
llvmpipe: check shader outputs are non-null before using
2010-10-15 14:49:13 +01:00
Vinson Lee
a14376218e
mesa: Add missing header to shaderobj.h.
...
Include compiler.h for ASSERT symbol.
2010-10-15 06:13:18 -07:00
Keith Whitwell
39185efd3a
llvmpipe: fix non-sse build after recent changes
2010-10-15 14:11:22 +01:00
Keith Whitwell
392b0954c2
llvmpipe: use aligned loads/stores for plane values
2010-10-15 13:52:00 +01:00
Keith Whitwell
9f9a17eba8
llvmpipe: do plane calculations with intrinsics
...
This is a step towards moving this code into the rasterizer.
2010-10-15 13:38:06 +01:00
Keith Whitwell
15f4e3a8b9
gallium: move some intrinsics helpers to u_sse.h
2010-10-15 13:29:56 +01:00
Keith Whitwell
8965f042b3
llvmpipe: don't store plane.ei value in binned data
...
Further reduce the size of a binned triangle.
2010-10-15 13:27:47 +01:00
Keith Whitwell
9bf8a55c4b
llvmpipe: slightly shrink the size of a binned triangle
2010-10-15 13:27:47 +01:00
Keith Whitwell
0a1c900103
llvmpipe: don't pass frontfacing as a float
2010-10-15 13:27:47 +01:00
Keith Whitwell
4195febeec
llvmpipe: reintroduce SET_STATE binner command
...
But bin lazily only into bins which are receiving geometry.
2010-10-15 13:27:47 +01:00
Chad Versace
e2c1fe3eb0
glsl: Fix ir validation for bit logic ops
...
In ir_validate::visit_leave(), the cases for
- ir_binop_bit_and
- ir_binop_bit_xor
- ir_binop_bit_or
were incorrect. It was incorrectly asserted that both operands must be the
same type, when in fact one may be scalar and the other a vector. It was also
incorrectly asserted that the resultant type was the type of the left operand,
which in fact does not hold when the left operand is a scalar and the right
operand is a vector.
2010-10-15 00:20:18 -07:00
Chad Versace
4761d0d22b
glsl: Implement constant expr evaluation for bitwise logic ops
...
Implement by adding the following cases to
ir_exporession::constant_expression_value():
- ir_binop_bit_and
- ir_binop_bit_or
- ir_binop_bit_xor
2010-10-15 00:20:18 -07:00
Chad Versace
adea8150a7
glsl: Implement constant expr evaluation for bit-shift ops
...
Implement by adding the following cases to
ir_expression::constant_expression_value():
- ir_binop_lshfit
- ir_binop_rshfit
2010-10-15 00:20:18 -07:00
Chad Versace
90a8b792c0
glsl: Implement constant expr evaluation for bitwise-not
...
Implement by adding a case to ir_expression::constant_expression_value()
for ir_unop_bit_not.
2010-10-15 00:20:18 -07:00
Chad Versace
5c4c36f7f3
glsl: Implement ast-to-hir for binary shifts in GLSL 1.30
...
Implement by adding the following cases to ast_expression::hir():
- ast_lshift
- ast_rshift
Also, implement ir validation for the new operators by adding the following
cases to ir_validate::visit_leave():
- ir_binop_lshift
- ir_binop_rshift
2010-10-15 00:20:18 -07:00
Chad Versace
f88b4eaa8f
glsl: Change generated file glsl_lexer.cpp
2010-10-15 00:20:18 -07:00