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.
пре 15 година
José Fonseca
7a08dbcf55
gallivm: Correct copy'n'pasted comments.
пре 15 година
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.
пре 15 година
Michal Krol
1bb97610e9
svga: Fix CMP translation for vertex shader targets.
SVGA3DOP_CMP is not supported for vertex shaders;
use SLT + LRP instead.
пре 15 година
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.
пре 15 година
Marek Olšák
007bac8331
st/mesa: set the MaxVarying GLSL constant
пре 15 година
Marek Olšák
77dac1945f
r300g: fix warning in winsys
пре 15 година
Dave Airlie
57eecbbf6c
r600g: add DST opcode support.
пре 15 година
Dave Airlie
92f5c7a597
r600g: add SCS support.
пре 15 година
Dave Airlie
db92a03aac
r600g: fix warning introduced by last commit.
пре 15 година
Dave Airlie
47d5a19df1
r600g: add initial relative support to assembler
passes another ~20 piglits.
/me starts to run out low hanging fruit around now.
пре 15 година
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.
пре 15 година
Dave Airlie
4502b17901
r600g: add KILP support
passes glsl1-discard tests
пре 15 година
Dave Airlie
cb08b9fa84
r600g: fix SSG and op3 neg writing
8 more piglits, mainly the two SSG tests.
пре 15 година
Dave Airlie
09547e1bce
r600g : add basic loop support.
Adds BGNLOOP, BRK, CONT, ENDLOOP support, ported from r600c.
17 piglits more on r300g.tests.
пре 15 година
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>
пре 15 година
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>
пре 15 година
Richard Li
b3d41844c7
evergreen : fix shader const allocation and instruction bugs.
пре 15 година
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.
пре 15 година
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.
пре 15 година
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.
пре 15 година
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.
пре 15 година
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.
пре 15 година
Dave Airlie
c48ae0b6ed
r600g: drop file I added by mistake in a previous commit
пре 15 година
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.
пре 15 година
Vinson Lee
182d635060
gallium: Remove unnecessary header from p_state.h.
Remove p_screen.h.
пре 15 година
Vinson Lee
1fc396204b
nvfx: Remove util_is_pot in favor of util_is_power_of_two.
This is a follow up to commit 89b2897220
.
пре 15 година
Vinson Lee
b812ff8f9e
util: Include missing header in u_draw.h.
Include p_state.h for complete type to pipe_draw_info.
пре 15 година
Vinson Lee
1f3e6e9726
util: Add forward declaration in u_transfer.h.
пре 15 година
Marek Olšák
a922725118
r300g,u_blitter: use u_framebuffer
Removing another function duplication in u_blitter.
пре 15 година
Marek Olšák
89b2897220
util: remove util_is_pot in favor of util_is_power_of_two
The function was duplicated.
пре 15 година
Eric Anholt
735af3959f
i965: Add initial support for texturing to the new FS backend.
Fixes 11 piglit tests.
пре 15 година
Eric Anholt
af62060ef2
i965: Add disasm for gen5 sampler messages.
пре 15 година
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
пре 15 година
Vinson Lee
2dfd348e33
st/mesa: Include missing header in st_mesa_to_tgsi.c.
Include p_screen.h for complete type to pipe_screen.
пре 15 година
Vinson Lee
d42b7d5f8d
softpipe: Include missing header in sp_flush.c.
Include p_screen.h for complete type to pipe_screen.
пре 15 година
Vinson Lee
9112e531d4
draw: Include missing header in draw_vs_llvm.c.
Include p_screen.h for completely type to pipe_screen.
пре 15 година
Vinson Lee
cf1e4b15a4
llvmpipe: Include missing header in lp_flush.c.
Include p_screen.h for complete type to pipe_screen.
пре 15 година
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.
пре 15 година
Mathias Fröhlich
c0f0eb8668
r300g: fix min/max lod computation
пре 15 година
Marek Olšák
97cbb563f8
r300g: set the correct value in PVS_NUM_CNTLRS
As per docs.
пре 15 година
Vinson Lee
f7579f2f28
llvmpipe: Remove unnecessary header.
пре 15 година
Ian Romanick
120d5a95cb
glsl2: Decompose matrix comparison into vector operations
пре 15 година
Jakob Bornecrantz
977f7d48ee
trace: Don't try to dump the rgba array if null
пре 15 година
Eric Anholt
c7adb4ff1e
glsl: Rename a couple of common variable names in mat_op_to_vec.
It was easy while typing implementations to accidentally overwrite the
original expression or assignment variables.
пре 15 година
Eric Anholt
3c96ef1f07
glsl: Make mat_op_to_vec allocate out of the IR's parent.
This will reduce memory consumption of compiled shaders by not
dragging optimized-out children around.
пре 15 година
Eric Anholt
d17faf726e
i965: Set the pop count on BRK/CONT inside of an if statement in the FS.
This is the same as 8de8c97275
for the
VS, and fixes glsl-fs-if-nested-loop and the mandelbrot demo.
Bug #29498
пре 15 година
Eric Anholt
681492cbe2
glsl: Regenerate for double destroy fix.
пре 15 година
Eric Anholt
d539c69044
glsl: Protect against double compiler-destroy.
DRI was doing teardown when we close the last screen, then an atexit()
was added to call it as well.
пре 15 година
Eric Anholt
ae6e112c69
dri: Get prototype for _mesa_destroy_compiler().
Bug #29665 .
пре 15 година