summaryrefslogtreecommitdiffstats
path: root/src/gallium/include
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote branch 'origin/master' into lp-binningJosé Fonseca2010-01-166-74/+78
|\ | | | | | | | | | | Conflicts: src/gallium/drivers/llvmpipe/lp_quad.h src/gallium/drivers/llvmpipe/lp_setup.c
| * Merge branch 'gallium-noconstbuf'Roland Scheidegger2010-01-152-10/+1
| |\ | | | | | | | | | | | | | | | Conflicts: src/gallium/drivers/softpipe/sp_draw_arrays.c src/mesa/state_tracker/st_draw_feedback.c
| | * gallium: remove const qualifier from pipe_buffer argument in set_constant_bufferRoland Scheidegger2010-01-111-1/+1
| | |
| | * gallium: API cleanup, remove pointless pipe_constant_bufferRoland Scheidegger2009-12-232-10/+1
| | |
| * | Merge branch 'instanced-arrays'Michal Krol2010-01-143-11/+33
| |\ \ | | | | | | | | | | | | | | | | Conflicts: src/gallium/drivers/softpipe/sp_draw_arrays.c
| | * | gallium: draw_arrays/elements_instanced() are of type void.Michal Krol2010-01-121-15/+15
| | | |
| | * | Merge branch 'master' into instanced-arraysMichal Krol2010-01-053-25/+84
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/gallium/auxiliary/tgsi/tgsi_dump.c src/gallium/include/pipe/p_shader_tokens.h
| | * | | gallium: Move instance_divisor field from vertex_buffer to vertex_element.Michal Krol2009-12-291-1/+5
| | | | |
| | * | | gallium: Add interfaces needed for instanced drawing.Michal Krol2009-12-233-1/+19
| | | |/ | | |/|
| * | | gallium: remove forward struct declBrian Paul2010-01-131-4/+0
| | | | | | | | | | | | | | | | | | | | Other struct types (like pipe_texture) are referenced before they're defined so no reason to special-case this one.
| * | | gallium: Rename ALIGN_STACK -> PIPE_ALIGN_STACK for consistency.José Fonseca2010-01-121-3/+3
| | | |
| * | | gallium: Simplify PIPE_ALIGN_VAR.José Fonseca2010-01-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | gcc allows pre-fix variable attributes. Suggested by Ian Romanick.
| * | | gallium: Generalize the alignment macros to other compilers and any alignment.José Fonseca2010-01-121-9/+20
| | | |
| * | | winsys/drm: Add name field to drm_api.Chia-I Wu2010-01-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The name can be used for driver selection. It has the same name as the DRI driver does right now. Signed-off-by: Chia-I Wu <[email protected]>
| * | | gallium: Add PUBLIC macro for function visibility.Chia-I Wu2010-01-111-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | As the default build has -fvisibility=hidden, add a macro to control the visibility. Signed-off-by: Chia-I Wu <[email protected]>
| * | | st/dri: update dri2 drawables when viewport is changedBen Skeggs2010-01-111-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes gnome-shell on nouveau, as well as window resize with various other applications. Signed-off-by: Ben Skeggs <[email protected]>
| * | | gallium: Remove dead code.José Fonseca2010-01-101-4/+0
| | | |
| * | | gallium: Provide alternative stdint.h and stdbool.h C99 headers, instead of ↵José Fonseca2010-01-101-34/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ad-hoc definitions. Everybody is using the C99's integer types. Everybody except Microsoft, which in turns means everybody is including their own definitions of C99 integer types for MSVC, causing duplicate definitions when linking two projects. This is the case of building Gallium and LLVM with MSVC. Shipping alternative stdint.h and stdbool.h headers for MSVC allows us to share a single definition. It also removes clutter from the Gallium headers.
* | | | Merge remote branch 'origin/master' into lp-binningJosé Fonseca2010-01-0810-997/+408
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/gallium/auxiliary/util/u_surface.c src/gallium/drivers/llvmpipe/Makefile src/gallium/drivers/llvmpipe/SConscript src/gallium/drivers/llvmpipe/lp_bld_arit.c src/gallium/drivers/llvmpipe/lp_bld_flow.c src/gallium/drivers/llvmpipe/lp_bld_interp.c src/gallium/drivers/llvmpipe/lp_clear.c src/gallium/drivers/llvmpipe/lp_context.c src/gallium/drivers/llvmpipe/lp_context.h src/gallium/drivers/llvmpipe/lp_draw_arrays.c src/gallium/drivers/llvmpipe/lp_jit.c src/gallium/drivers/llvmpipe/lp_jit.h src/gallium/drivers/llvmpipe/lp_prim_vbuf.c src/gallium/drivers/llvmpipe/lp_setup.c src/gallium/drivers/llvmpipe/lp_setup_point.c src/gallium/drivers/llvmpipe/lp_state.h src/gallium/drivers/llvmpipe/lp_state_blend.c src/gallium/drivers/llvmpipe/lp_state_derived.c src/gallium/drivers/llvmpipe/lp_state_fs.c src/gallium/drivers/llvmpipe/lp_state_sampler.c src/gallium/drivers/llvmpipe/lp_state_surface.c src/gallium/drivers/llvmpipe/lp_tex_cache.c src/gallium/drivers/llvmpipe/lp_tex_cache.h src/gallium/drivers/llvmpipe/lp_tex_sample.h src/gallium/drivers/llvmpipe/lp_tile_cache.c
| * | | gallium: remove PIPE_TEX_FILTER_ANISOLuca Barbieri2010-01-061-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes PIPE_TEX_FILTER_ANISO. Anisotropic filtering is enabled if and only if max_anisotropy > 1.0. Values between 0.0 and 1.0, inclusive, of max_anisotropy are to be considered equivalent, and meaning to turn off anisotropic filtering. This approach has the small drawback of eliminating the possibility of enabling anisotropic filter on either minification or magnification separately, which Radeon hardware seems to support, is currently support by Gallium but not exposed to OpenGL. If this is actually useful it could be handled by splitting max_anisotropy in two values and adding an appropriate OpenGL extension. NOTE: some fiddling & reformatting by keithw to get this patch to apply. Hopefully nothing broken in the process.
| * | | Merge commit 'origin/gallium-draw-retval'Keith Whitwell2010-01-051-14/+14
| |\ \ \ | | |_|/ | |/| | | | | | | | | | Conflicts: src/gallium/drivers/identity/id_context.c
| | * | gallium: remove return value from draw callsKeith Whitwell2009-12-211-14/+14
| | | |
| * | | gallium: Add UMOD TGSI opcode.Michal Krol2010-01-051-11/+12
| | | | | | | | | | | | | | | | Either that or have UDIV have two destination operands.
| * | | gallium: Add SWITCH, CASE, DEFAULT and ENDSWITCH opcodes to TGSI.Michal Krol2010-01-051-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide reference implementation of them in tgsi_exec. Note that BREAK opcode is overloaded and can be used to break out of either a loop or a switch-case statement.
| * | | gallium: Add signed/unsigned int immediate data types.Michal Krol2010-01-051-0/+4
| | | |
| * | | Remove TGSI_OPCODE_SHR, map existing usage to TGSI_OPCODE_ISHR.Michal Krol2010-01-051-1/+1
| | | | | | | | | | | | | | | | This is to differentiate it from its unsigned version, TGSI_OPCODE_USHR.
| * | | gallium: Add more integer TGSI opcodes.Michal Krol2010-01-051-1/+22
| | | |
| * | | gallium: pipe_context::render_condition() and mode flagsBrian Paul2009-12-312-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | For conditional rendering predicated on results of an occlusion query. If this driver function is NULL, conditional rendering is not supported by the driver.
| * | | gallium: remove TGSI_SEMANTIC_VERTICESZack Rusin2009-12-251-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | it's a leftover from an early version of geometry shading support. geometry shaders now encode the primitive size in the PROPERTY token and don't need special input with their size.
| * | | gallium: geometry shader can be always enabled and we don't need a cap for thatZack Rusin2009-12-251-1/+0
| | | | | | | | | | | | | | | | | | | | using the draw module allows us to enable geometry shading even on hardware that doesn't support it.
| * | | util: put vertices_per_primitive function in its proper locationZack Rusin2009-12-251-32/+0
| | | |
| * | | gallium: add an inline that returns number of vertices per primitiveZack Rusin2009-12-251-0/+32
| | | |
| * | | gallium: add geometry shader support to galliumZack Rusin2009-12-253-22/+36
| | |/ | |/|
| * | Merge branch 'gallium-edgeflags'Roland Scheidegger2009-12-222-9/+2
| |\ \ | | |/ | |/| | | | | | | Conflicts: src/mesa/state_tracker/st_draw.c
| | * gallium: first steps to treat edgeflags as regular vertex elementKeith Whitwell2009-12-092-9/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The idea here is to eliminate the set_edgeflags() call in pipe_context by treating edgeflags as a regular vertex element. Edgeflags provoke special treatment in hardware, which means we need to label them in some way, in this case we'll be passing them through the vertex shader and labelling the vertex shader output with a new TGSI semantic (TGSI_SEMANTIC_EDGEFLAG).
| * | Move the remaining format pf_get_* functions to u_format.h.Michal Krol2009-12-171-134/+0
| | | | | | | | | | | | | | | Previously they depended on format blocks, but after removing those they started depending on format encoding.
| * | Merge branch 'master' into pipe-format-simplifyMichal Krol2009-12-177-64/+161
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/gallium/auxiliary/draw/draw_pipe_aaline.c src/gallium/auxiliary/draw/draw_pipe_pstipple.c src/gallium/auxiliary/util/u_blit.c src/gallium/auxiliary/util/u_gen_mipmap.c src/gallium/auxiliary/util/u_surface.c src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c src/gallium/drivers/cell/ppu/cell_texture.c src/gallium/drivers/llvmpipe/lp_texture.c src/gallium/drivers/r300/r300_emit.c src/gallium/drivers/r300/r300_texture.c src/gallium/drivers/softpipe/sp_texture.c src/gallium/drivers/softpipe/sp_tile_cache.c src/gallium/drivers/svga/svga_state_vs.c src/gallium/include/pipe/p_format.h src/gallium/state_trackers/dri/dri_drawable.c src/gallium/state_trackers/egl/egl_surface.c src/gallium/state_trackers/python/p_device.i src/gallium/state_trackers/python/st_softpipe_winsys.c src/gallium/state_trackers/vega/api_filters.c src/gallium/state_trackers/vega/image.c src/gallium/state_trackers/vega/mask.c src/gallium/state_trackers/vega/paint.c src/gallium/state_trackers/vega/renderer.c src/gallium/state_trackers/vega/vg_tracker.c src/gallium/state_trackers/xorg/xorg_crtc.c src/gallium/state_trackers/xorg/xorg_dri2.c src/gallium/state_trackers/xorg/xorg_exa.c src/gallium/state_trackers/xorg/xorg_renderer.c src/gallium/state_trackers/xorg/xorg_xv.c src/gallium/state_trackers/xorg/xvmc/surface.c src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c src/gallium/winsys/drm/radeon/core/radeon_buffer.c src/gallium/winsys/egl_xlib/sw_winsys.c src/gallium/winsys/g3dvl/xlib/xsp_winsys.c src/gallium/winsys/gdi/gdi_llvmpipe_winsys.c src/gallium/winsys/gdi/gdi_softpipe_winsys.c src/gallium/winsys/xlib/xlib_cell.c src/gallium/winsys/xlib/xlib_llvmpipe.c src/gallium/winsys/xlib/xlib_softpipe.c src/mesa/state_tracker/st_cb_fbo.c src/mesa/state_tracker/st_cb_texture.c src/mesa/state_tracker/st_texture.c
| | * | pipe: add PIPE_MAX_TEXTURE_TYPESMarek Olšák2009-12-151-1/+2
| | | |
| | * | tgsi: add properties and system value registerZack Rusin2009-12-141-10/+28
| | | | | | | | | | | | | | | | | | | | | | | | adds support for properties to all parts of the tgsi framework, plus introduces a new register which will be used for system generated values.
| | * | gallium: added comment for pipe_reference() return valueBrian Paul2009-12-111-0/+1
| | |/
| | * gallium: use boolean instead of bool in p_refcnt.hRoland Scheidegger2009-12-081-3/+3
| | | | | | | | | | | | all code in gallium should use boolean not bool
| | * Merge branch 'gallium-strict-aliasing'Roland Scheidegger2009-12-083-14/+16
| | |\
| | | * gallium: fix reference counting functions to be strict-aliasing compliantRoland Scheidegger2009-12-033-14/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Historically, parts of mesa code are not strict-aliasing safe, hence -fno-strict-aliasing is needed to compile (this got forgotten for scons builds for gallium, which indeed not only caused compiler warnings but also unexplicable crashes in non-debug builds). However, we should try to eliminate code not complying with strict-aliasing code at least for gallium. Hence change pipe_reference functions to make them strict-aliasing compliant. This adds a bit more complexity (especially for derived classes) but is the right thing to do, and it does in fact fix a segfault.
| | * | gallium: Disable force_align_arg_pointer attribute on x86_64.José Fonseca2009-12-041-1/+1
| | | | | | | | | | | | | | | | Apparently not only unnecessary but also causes gcc to complain.
| | * | Merge branch 'gallium-noblocks'Roland Scheidegger2009-12-042-79/+52
| | |\ \ | | | |/ | | |/| | | | | | | | | Conflicts: src/gallium/state_trackers/xorg/xorg_exa.c
| | | * gallium: interface cleanups, remove nblocksx/y from pipe_texture and moreRoland Scheidegger2009-11-302-79/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes nblocksx, nblocksy arrays from pipe_texture (can be recalculated if needed). Furthermore, pipe_format_block struct is gone completely (again, contains just derived state). nblocksx, nblocksy, block are also removed from pipe_transfer, together with the format enum (can be obtained from the texture associated with the transfer).
| * | | gallium: Make pipe_format a sequential enum.Michal Krol2009-12-081-294/+113
| | | |
| * | | Remove remaining pipe format utility functions.Michal Krol2009-12-081-18/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Depricate pf_type(), pf_size_*(), pf_layout() and pf_exp2(). Map depricated PIPE_FORMAT_TYPE to new UTIL_FORMAT_ values: UNKNOWN = TYPE_VOID UNORM = TYPE_UNSIGNED + LAYOUT_ARITH SNORM = TYPE_SIGNED + LAYOUT_ARITH FIXED = TYPE_FIXED FLOAT = TYPE_FLOAT USCALED = TYPE_UNSIGNED + LAYOUT_ARRAY SSCALED = TYPE_SIGNED + LAYOUT_ARRAY SRGB = TYPE_COLORSPACE_SRGB
| * | | Remove pf_swizzle_* internal macros.Michal Krol2009-12-031-5/+0
| | | |
| * | | gallium: Remove pf_mixed_*().Michal Krol2009-12-031-11/+0
| | | |