summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-12-01st/vega: Delay fb state update to vg_validate_state.Chia-I Wu
vg_manager_validate_framebuffer should mark the fb dirty and have vg_validate_state call cso_set_framebuffer. Rename VIEWPORT_DIRTY to FRAMEBUFFER_DIRTY.
2010-12-01st/vega: Add POLYGON_STENCIL and POLYGON_FILL renderer state.Chia-I Wu
The states are designated for polygon filling. Polygon filling is a two-pass process utilizing the stencil buffer. polygon_fill and polygon_array_fill functions are updated to make use of the state.
2010-12-01st/vega: Use the renderer for vgMask.Chia-I Wu
vgMask renders to the alpha mask with special fragment shaders. The operation can be supported by switching the renderer to FILTER state.
2010-12-01st/vega: Add FILTER renderer state for image filtering.Chia-I Wu
The state is designated to perform image filtering. execute_filter is updated to make use of the state.
2010-12-01st/vega: Add CLEAR renderer state for vgClear.Chia-I Wu
This state provides the ability to clear rectangles of the framebuffer to the specified color, honoring scissoring. vegaClear is updated to make use of the state.
2010-12-01st/vega: Add SCISSOR renderer state.Chia-I Wu
The state can be used to set rectangles of the depth buffer to 0.0f. update_clip_state is changed to use the state for scissor update.
2010-12-01st/vega: Add DRAWTEX renderer state.Chia-I Wu
This state provides glDrawTex-like function. It can be used for vgSetPixels. Rather than modifying every user of the renderer, this commit instead modifies renderer_copy_surface to use DRAWTEX or COPY state internally depending on whether the destination is the framebuffer.
2010-12-01st/vega: Overhaul renderer with renderer states.Chia-I Wu
Renderer states are high-level states to perform specific tasks. The renderer is initially in INIT state. In that state, the renderer is used for OpenVG pipeline. This commit adds a new COPY state to the renderer. The state is used for copying between two pipe resources using textured drawing. It can be used for vgCopyImage, for example. Rather than modifying every user of the renderer, this commit instead modifies renderer_copy_texture to use the COPY state internally.
2010-12-01llvmpipe: Fix build errors on x86.Chia-I Wu
The errors were introduced by efc82aef35a2aac5d2ed9774f6d28f2626796416.
2010-11-30docs: Fix MESA_drm_image typoKristian Høgsberg
2010-11-30gallivm/llvmpipe: squash merge of the llvm-context branchBrian Paul
This branch defines a gallivm_state structure which contains the LLVMBuilderRef, LLVMContextRef, etc. All data structures built with this object can be periodically freed during a "garbage collection" operation. The gallivm_state object has to be passed to most of the builder functions where LLVMBuilderRef used to be used. Conflicts: src/gallium/auxiliary/gallivm/lp_bld_tgsi_soa.c src/gallium/drivers/llvmpipe/lp_state_setup.c
2010-11-30r300g: fix texture border color once againMarek Olšák
I made the texwrap test be more thorough and realized that this driver code had not been quite right. This commit fixes the border color for depth textures, compressed textures, and 16-bits-per-channel textures with up to 2 channels (R16, RG16). NOTE: This is a candidate for the 7.9 branch.
2010-11-30glsl/linker: Free any IR discarded by optimization passes.Kenneth Graunke
Previously, IR for a linked shader was allocated directly out of the gl_shader object - meaning all of it lived as long as the shader. Now, IR is allocated out of a temporary context, and any -live- IR is reparented/stolen to (effectively) the gl_shader. Any remaining IR can be freed. NOTE: This is a candidate for the 7.9 branch.
2010-11-30glsl: Remove anti-built-in hacks from the print visitor.Kenneth Graunke
Now that we only import built-in signatures that are actually used, printing them is reasonable.
2010-11-30glsl: Lazily import built-in function prototypes.Kenneth Graunke
This makes a very simple 1.30 shader go from 196k of memory to 9k. NOTE: This -may- be a candidate for the 7.9 branch, as the benefit is substantial. However, it's not a simple change, so it may be wiser to wait for 7.10.
2010-11-30glsl: Refactor out cloning of function prototypes.Kenneth Graunke
This allows us to reuse some code and will be useful later.
2010-11-30glsl: fix matrix type check in ir_algebraicAras Pranckevicius
Fixes glsl-mat-mul-1.
2010-11-30glsl: Quiet unreachable no-return-from-function warning.Eric Anholt
2010-11-30scons: add alias for identityZack Rusin
2010-11-30glsl: Fix structure and array comparisions.Eric Anholt
We were trying to emit a single ir_expression to compare the whole thing. The backends (ir_to_mesa.cpp and brw_fs.cpp so far) expected ir_binop_any_nequal or ir_binop_all_equal to apply to at most a vector (with matrices broken down by the lowering pass). Break them down to a bunch of ORed or ANDed any_nequals/all_equals. Fixes: glsl-array-compare glsl-array-compare-02 glsl-fs-struct-equal glsl-fs-struct-notequal Bug #31909
2010-11-30glsl: Add a helper constructor for expressions that works out result type.Eric Anholt
This doesn't cover all expressions or all operand types, but it will complain if you overreach and it allows for much greater slack on the programmer's part.
2010-11-30llvmpipe: shortcircuit some calls to set_scene_stateKeith Whitwell
2010-11-30llvmpipe: remove misleading debug stringKeith Whitwell
2010-11-30llvmpipe: raise dirty flag on transfers to bound constbufKeith Whitwell
Need this to trigger the scene to update its shadow of the constant state.
2010-11-30wgl: More complete WGL_ARB_pbuffer support.José Fonseca
2010-11-30wgl: Stub WGL_ARB_pbuffer support.José Fonseca
See http://www.opengl.org/registry/specs/ARB/wgl_pbuffer.txt
2010-11-30scons: Alias for svgaJosé Fonseca
2010-11-30svga: Use consistent hexadecimal representation on debug output.José Fonseca
2010-11-30util: rename u_mempool -> u_slabMarek Olšák
2010-11-30gallivm: fix storing of the addr registerZack Rusin
we store into the index specified by the register index, not an indirect register.
2010-11-29glsl: Make the symbol table's add_variable just use the variable's name.Eric Anholt
2010-11-29glsl: Make the symbol table's add_function just use the function's name.Eric Anholt
2010-11-29i965: Fix type of gl_FragData[] dereference for FB write.Eric Anholt
Fixes glsl-fs-fragdata-1, and hopefully Eve Online where I noticed this bug in the generated shader. Bug #31952.
2010-11-29drivers/x11: unifdef XFree86ServerAdam Jackson
This code was for the old GLcore build of the software rasteriser. The X server switched to a DRI driver for software indirect GLX long ago. Signed-off-by: Adam Jackson <ajax@redhat.com>
2010-11-29st/mesa: fix texture border color for RED and RG base formatsMarek Olšák
The spec says the border color should be consistent with the internal format. Signed-off-by: Brian Paul <brianp@vmware.com>
2010-11-29mesa: check for posix_memalign() errorspontus lidman
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-11-29r600g: it looks like r600 can handle dword offsets in the indices.Dave Airlie
Tested with piglit + ut2004 still seems to render okay (and it definitely does this)
2010-11-28u_blitter: interpolate clear color using a GENERIC varying instead of COLORMarek Olšák
There are also some u_simple_shaders changes. On r300, the TGSI_SEMANTIC_COLOR varying is a fixed-point number clamped to the range [0,1] and limited to 12 bits of precision. Therefore we can't use it for passing through a clear color in order to clear high precision texture formats. This also makes u_blitter use only one vertex shader instead of two.
2010-11-27r600g: Fix the PIPE_FORMAT_A8_UNORM color swap for Evergreen as well.Henri Verbeet
2010-11-27r600g: Fix the PIPE_FORMAT_L8A8_UNORM color swaps.Henri Verbeet
2010-11-26st/mesa: Set PIPE_TRANSFER_DISCARD for GL_MAP_INVALIDATE_RANGE/BUFFFER_BITMathias Fröhlich
Signed-off-by: Brian Paul <brianp@vmware.com> Note: this is a candidate for the 7.9 branch.
2010-11-26st/mesa: fix mapping of zero-sized buffer objectsBrian Paul
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=31934
2010-11-26xorg/vmwgfx: Don't clip video to viewportThomas Hellstrom
Since the viewport is not updated on RandR12 mode switches anymore, clipping to viewport may incorrectly clip away the video. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-11-26xorg/vmwgfx: Flush even if we don't autopaint the color keyThomas Hellstrom
This may help paint the colorkey before overlay updates in some situations where the app paints the color key (mainly xine). Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
2010-11-26r300/compiler: move util functions to radeon_compiler_utilMarek Olšák
The compiler seriously needs a cleanup as far as the arrangement of functions is concerned. It's hard to know whether some function was implemented or not because there are so many places to search in and it can be anywhere and named anyhow.
2010-11-26r300/compiler: add a function for swizzling a maskMarek Olšák
2010-11-26r300/compiler: remove duplicate function rc_mask_to_swzMarek Olšák
2010-11-26r300/compiler: fix rc_rewrite_depth_out for it to work with any instructionMarek Olšák
It looks like the function was originally written for ARB_fragment_program. NOTE: This is a candidate for the 7.9 branch.
2010-11-25u_blitter: use PIPE_TRANSFER_DISCARD to prevent cpu/gpu stallMarek Olšák
But the driver must be smart here and follow PIPE_TRANSFER_DISCARD, as it should.
2010-11-25nvfx: reset nvfx->hw_zetaXavier Chantry
If nvfx_framebuffer prepare and validate were called successively with fb->zsbuf not NULL and then NULL, nvfx->hw_zeta would contain garbage and this would cause failures in nvfx_framebuffer_relocate/OUT_RELOC(hw_zeta). This was triggered by piglit/texwrap 2D GL_DEPTH_COMPONENT24 and caused first a 'write to user buffer!!' error in libdrm and then worse things. Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com> Signed-off-by: Francisco Jerez <currojerez@riseup.net>