summaryrefslogtreecommitdiff
path: root/src/gallium
AgeCommit message (Collapse)Author
2010-08-13Merge branch 'master' into glsl2Ian Romanick
2010-08-13scons: Build the new glsl2 code.José Fonseca
2010-08-12gallium: Link DRI drivers with g++ and test with CXXJakob Bornecrantz
New shader compiler need libc++ runtime. This works already if we are using llvm so this just covers the !llvm case.
2010-08-06r600g: fix color format, indentation, definesJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-06Revert "r600g: don't use dynamic state allocation for states"Jerome Glisse
This reverts commit 9c949d4a4dd43b7889e13bdf683bcf211f049ced. Conflicts: src/gallium/drivers/r600/r600_context.h src/gallium/drivers/r600/r600_draw.c src/gallium/drivers/r600/r600_shader.c src/gallium/drivers/r600/r600_state.c
2010-08-06draw: Avoid mixed declarations and code.Chia-I Wu
Do not expand LOCAL_VARS to void expression. Otherwise, declarations and code will be mixed when more variables are declared in FUNC_ENTER. This fixes fdo bug #29416.
2010-08-05r300g: Remove unnecessary headers.Vinson Lee
2010-08-06r600g: start to fix up multiple targets.Dave Airlie
fixup exports from pixel shader for multi-cbs + depth buffer writing. Still crashes GPU running any of the multi-buffer or depth writing
2010-08-06draw: Remove unnecessary vertex flag ANDs.Chia-I Wu
Vertex flags are a contract between vcache and the pipeline. They are set only for the first vertex of a primitive.
2010-08-06draw: Mask out vertex flags in GS and stream output.Chia-I Wu
This fixes out-of-bound access to the vertices.
2010-08-06draw: Include draw_decompose_tmp.h in draw_pt_decompose.h.Chia-I Wu
Use draw_decompose_tmp.h to replace pipeline primitive decomposer.
2010-08-06draw: Include draw_decompose_tmp.h in draw_so_emit_tmp.h.Chia-I Wu
Use draw_decompose_tmp.h to replace stream out primitive decomposer.
2010-08-06draw: Include draw_decompose_tmp.h in draw_gs_tmp.h.Chia-I Wu
Use draw_decompose_tmp.h to replace GS primitive decomposer.
2010-08-06draw: Include draw_decompose_tmp.h in draw_pt_vcache_tmp.h.Chia-I Wu
Use draw_decompose_tmp.h to replace vcache primitive decomposer. As the new decomposer supports primitives with adjacency, vcache_triangle_adj and vcache_line_adj (and their variants that have flags) are added.
2010-08-06draw: Add draw_decompose_tmp.h.Chia-I Wu
Including draw_decompose_tmp.h defines a primitive decomposer. It is intended to replace the existing vcache/so/gs/pipe decomposers. This is based on draw_pt_vcache_tmp.h.
2010-08-06r600g: add SRGB support.Dave Airlie
This enables GL2.1 and passes glean's texture_srgb test.
2010-08-06r600g: fixup z format translations.Dave Airlie
this enables GL_EXT_packed_depth_stencil. fbo-d24s8 passes
2010-08-06r600g: fix targetmask to work correctly.Dave Airlie
At least this seems to fix the glean maskedClear test.
2010-08-06r600g: improve supported format selection.Dave Airlie
This fixes fbo-readpixels piglit test, and adds support for swapping the formats. Not all formats are correct yet I don't think. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-08-06r600g: add bo wait after map.Dave Airlie
2010-08-06r300g: do not emit GB_Z_PEQ_CONFIG on non-r500 if DRM < 2.6.0Marek Olšák
2010-08-05tgsi: Fix typo, so we follow what is in the commentsJakob Bornecrantz
2010-08-05tgsi: Add option to stop the sanity checker from printingJakob Bornecrantz
2010-08-05util: Add option to not dump cpu capsJakob Bornecrantz
2010-08-05llvmpipe: Only get no rast option onceJakob Bornecrantz
2010-08-05gallivm: Only get debug option onceJakob Bornecrantz
2010-08-06nvfx: fix nv30 vertex program scalar opcodesLuca Barbieri
Apparently they have always been broken, even before unification. Fixes a lot of stuff, starting from morph3d and lighting in teapot with textures disabled.
2010-08-06nvfx: shut up unknown cap 64 warningLuca Barbieri
2010-08-05r600g: don't use dynamic state allocation for statesJerome Glisse
Simplify state handly by avoiding state allocation. Next step is to allocate once for all context packet buffer and then avoid rebuilding pm4 packet each time (through use of combined crc) this would also avoid number of memcpy. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-05targets/egl: fix buildJoakim Sindholt
2010-08-05r300g: fix fb_state atom sizeMarek Olšák
2010-08-05r300g: debug_print on startup whether we can use hyper-zMarek Olšák
2010-08-05r300g: always emit hyperz state atom.Dave Airlie
2010-08-05r300g: disable hiz on rv530 for now.Dave Airlie
On my rv530 at least HiZ is causing rendering issues in gears.
2010-08-05r300g: implement hyper-z support. (v4)Dave Airlie
This implements fast Z clear, Z compression, and HiZ support for r300->r500 GPUs. It also allows cbzb clears when fast Z clears are being used for the ZB. It requires a kernel with hyper-z support. Thanks to Marek Olšák <maraeo@gmail.com>, who started this off, and Alex Deucher at AMD for providing lots of hints. v2: squashed zmask ram size fix] squashed r300g/blitter: fix Z readback when compressed] v3: rebase around texture changes in master - .1 fix more bits v4: migrated to using u_mm in r300_texture to manage hiz/zmask rams consistently disabled HiZ when using OQ flush z-cache before turning hyper-z off update hyper-z state on dsa state change store depthclearvalue across cbzb clears and replace it afterwards. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-08-05docs: clarify point sprite discussionKeith Whitwell
Plagiarizes email explanation from Roland.
2010-08-04r600g: force flush on map as temporary fix to readpixelJerome Glisse
Should allow more piglit test to pass. Need to plugin proper flushing. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-04r600g: always perform texture perspective divide + fix blendingJerome Glisse
quake3 engine seems to run fine at this point (ioquake) Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-04draw: Fix return type of draw_translate_vinfo_size.Vinson Lee
Fixes typo from commit b609cfc7c9c38f26e7e6d6f7dd5dd6d38f4ed209.
2010-08-04draw: Fix the edge flags of flatshade_first polygons.Chia-I Wu
This bug can be triggered by rendering polygons with glProvokingVertexEXT(GL_FIRST_VERTEX_CONVENTION_EXT); glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
2010-08-03r300/compiler: r500 hw support for break and continue in loops.Tom Stellard
The BGNLOOP and ENDLOOP instructions are now being used correctly, which makes break and continue possible. The deadcode pass has been modified to handle breaks, and the compiler is more careful about which loops are unrolled.
2010-08-04r300g: disable multisample visuals until the state tracker bits catch up.Dave Airlie
This stops us advertising lots of ms visuals we can't actually use. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-08-03draw: check for instance divisors in vcache_check_run()Brian Paul
When we have instance divisors we don't really know which vertex elements we'll be fetching ahead of time. This fixes a bug in instanced drawing which was exposed by the new draw_vbo() code because of max_index not being ~0 as often as it used to be. The test for max_index >= DRAW_PIPE_MAX_VERTICES often hid this problem before.
2010-08-03gallium/translate: make generic_run() and generic_run_elts() more alikeBrian Paul
Plus more debug code and do clamping in generic_run().
2010-08-03draw: added a commentBrian Paul
2010-08-03draw: use instance divisor in draw_print_arrays()Brian Paul
2010-08-03draw: add assertion, rearrange debug codeBrian Paul
2010-08-04st/dri: fix crash when dri2_drawable_get_buffers failsMarek Olšák
It's easily reproducible with Compiz with its Resize window mode set to Normal (which is usually not the default mode). https://bugs.freedesktop.org/show_bug.cgi?id=28658 https://bugs.freedesktop.org/show_bug.cgi?id=29303 This is actually a workaround to prevent Compiz crashes. Instead, a completely white titlebar might show up during resizing transparent windows (a rare case). The underlying cause should be fixed by someone who has more knowledge about the code. (dri2_drawable_get_buffers should not return NULL) Acked-By: Jakob Bornecrantz <jakob@vmware.com>
2010-08-03r600g: add polygon offset supportJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-08-03r600g: flush and resubmit if we reach limitJerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>