aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/include/pipe/p_state.h
Commit message (Collapse)AuthorAgeFilesLines
* gallium: rearrange some members to avoid memory holes/paddingZack Rusin2009-07-061-6/+6
| | | | plus it saves us a cacheline in the cso
* gallium: remove the pipe_sampler_state::shadow_ambient fieldBrian Paul2009-06-301-1/+0
| | | | | | | This was only present for the sake of GL_ARB_shadow_ambient which we never implemented in Gallium. If we someday want GL_ARB_shadow_ambient we can implement it in the state tracker by adding a MAD after the relevant TEX instructions.
* gallium: remove pipe_texture::compressed fieldBrian Paul2009-04-101-1/+0
| | | | | The format field encodes compressed vs. uncompressed already. We can easily check if a texture is compressed with pf_is_compressed(texture->format).
* gallium: Remove some little-used fields from struct pipe_surface.Michel Dänzer2009-03-261-2/+0
|
* gallium: remove remaining references to origin_lower_leftKeith Whitwell2009-03-211-1/+0
|
* gallium: consolidate bypass_vs and bypass_clipping flagsKeith Whitwell2009-03-131-3/+9
| | | | | | | | | The draw module provides a similar interface to the driver which is retained as various bits of hardware may be able to take on incremental parts of the vertex pipeline. However, there's no need to advertise all this complexity to the state tracker. There are basically two modes now - normal and passthrough/screen-coords.
* gallium: Unify reference counting.Michel Dänzer2009-03-041-11/+36
| | | | | | | | | | | | | | The core reference counting code is centralized in p_refcnt.h. This has some consequences related to struct pipe_buffer: * The screen member of struct pipe_buffer must be initialized, or pipe_buffer_reference() will crash trying to destroy a buffer with reference count 0. u_simple_screen takes care of this, but I may have missed some of the drivers not using it. * Except for rare exceptions deep in winsys code, buffers must always be allocated via pipe_buffer_create() or via screen->*buffer_create() rather than via winsys->*buffer_create().
* Merge branch 'master' into gallium-texture-transferKeith Whitwell2009-02-161-1/+0
|\ | | | | | | | | | | | | Conflicts: src/mesa/state_tracker/st_cb_accum.c src/mesa/state_tracker/st_cb_drawpixels.c
| * gallium: move 'struct pipe_winsys'Brian Paul2009-02-051-1/+0
| | | | | | | | Not used in p_state.h but used in p_context.h and p_screen.h
* | gallium: No longer allow CPU mapping surfaces directly.Michel Dänzer2009-02-051-4/+24
|/ | | | | | | | | | Instead, a new pipe_transfer object has to be created and mapped for transferring data between the CPU and a texture. This gives the driver more flexibility for textures in address spaces that aren't CPU accessible. This is a first pass; softpipe/xlib builds and runs glxgears, but it only shows a black window. Looks like something's off related to the Z buffer, so the depth test always fails.
* gallium: remove pipe_buffer from surfacesZack Rusin2009-02-021-1/+0
| | | | | | | this change disassociates, at least from the driver perspective, the surface from buffer. surfaces are technically now views on the textures so make it so by hiding the buffer in the internals of textures.
* gallium: remove redundant size from the constant bufferZack Rusin2009-01-271-1/+0
| | | | reuse the size of the actual buffer
* gallium: it's a reference value, not a reference numberZack Rusin2009-01-271-1/+1
|
* gallium: standardize api on the prefix "nr"Zack Rusin2009-01-271-1/+1
|
* gallium: standardize naming of masksZack Rusin2009-01-271-3/+3
|
* gallium: standardize on stride instead of pitch in the interfaceZack Rusin2009-01-271-1/+1
|
* gallium: Remove the standalone surfaces.José Fonseca2009-01-201-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This commit is mostly just a cosmetic change that cleans-up the interfaces, replacing pipe_winsys::surface_* calls by /** * Allocate storage for a display target surface. * * Often surfaces which are meant to be blitted to the front screen (i.e., * display targets) must be allocated with special characteristics, memory * pools, or obtained directly from the windowing system. * * This callback is invoked by the pipe_screenwhen creating a texture marked * with the PIPE_TEXTURE_USAGE_DISPLAY_TARGET flag to get the underlying * buffer storage. */ struct pipe_buffer *(*surface_buffer_create)(struct pipe_winsys *ws, unsigned width, unsigned height, enum pipe_format format, unsigned usage, unsigned *stride); Most drivers were updated but not all were tested. Use the softpipe pipe driver and the xlib winsys changes as a reference when fixing other drivers.
* gallium: minor reformattingBrian Paul2009-01-191-6/+9
|
* gallium: Fix doxygen comments.José Fonseca2008-09-191-0/+2
|
* gallium: comments about nblocksx/y, etcBrian Paul2008-09-031-7/+7
|
* gallium: Name pipe_depth_stencil_alpha_state member structures.José Fonseca2008-08-121-21/+30
| | | | | | | So that the previously anonymous depth/stencil/alpha structures can be identified in the traces. This is just syntactic sugar: it does not break source or binary compatibility.
* gallium: Move PIPE_TEXTURE_USAGE* to p_defines.hJosé Fonseca2008-07-191-6/+0
|
* gallium: handle msaaRoland Scheidegger2008-06-271-2/+4
|
* gallium: Drop pipe_texture->cpp and pipe_surface->cpp.José Fonseca2008-06-271-3/+8
| | | | | The chars-per-pixel concept falls apart with compressed and yuv images, where more than one pixel are coded in a single data block.
* gallium: New PIPE_TEXTURE_USAGE_PRIMARY flag for primary surfaces.José Fonseca2008-05-071-2/+3
|
* gallium: add pipe surface layout value (Roland Scheidegger)Keith Whitwell2008-05-031-0/+1
|
* gallium: identify depth-stencil texturesKeith Whitwell2008-05-021-1/+2
| | | | And don't use the display-target path to allocate them.
* gallium: Add texture usage flags, special-case allocation of display targetsKeith Whitwell2008-05-021-1/+5
| | | | | | | | | | | For many envirionments it's necessary to allocate display targets in a window-system friendly manner. Add facilities so that a driver can tell if a texture is likely to be used to generate a display surface and if use special allocation paths if necessary. Hook up softpipe to call into the winsys->surface_alloc_storage() routine in this case, though we probably want to change that interface slightly also.
* gallium: remove usage of winsys->surface_alloc_storage from state trackerKeith Whitwell2008-05-021-0/+2
| | | | | | | | | Allocate a texture containing storage instead. Also clean up ACCUM buffer allocation slightly -- drivers will need some changes to texture allocation logic to accomodate the concept of a texture that will only as image storage by the CPU, but it's cleaner than it was.
* gallium: add information to surface to identify which texture image it is ↵Keith Whitwell2008-05-011-0/+3
| | | | pointing at
* gallium: tex surface checkpointKeith Whitwell2008-05-011-0/+4
|
* gallium: re-order, clean-up PIPE_MAX_* definitionsBrian2008-04-081-9/+8
|
* gallium: remove obsolete/unused PIPE_ATTRIB_MAXBrian2008-04-081-1/+0
|
* gallium: fix two-side stencil handlingRoland Scheidegger2008-04-041-1/+1
| | | | | | | | | | | Previously all drivers were in twosided mode since they checked for stencil.enable[1] flag which was a copy of stencil.enable[0]. Note that drivers should not reference stencil[1] state (other than the enable) if twosided stenciling is disabled (for now the stencil state is still copied but for instance clear_with_quads won't provide useful values in there). Also, use _TestTwoSide instead of TestTwoSide since results would be bogus otherwise if using APIs with implicit two side stencil enable (i.e. core ogl 2.0).
* gallium: add a flag to turn on gl rasterization rulesKeith Whitwell2008-04-021-0/+1
| | | | | | | Use this to set up hardware rasterization (if your hardware can do it) or otherwise turn on various tweaks in the draw module. Currently only hooked up to point biasing code.
* gallium: add temporary facility for rasterization-time clamping of point sizesKeith Whitwell2008-04-021-0/+2
|
* gallium: updated comment for bypass_vsBrian2008-03-311-1/+2
|
* gallium: remove redundant compare bit in sampler stateRoland Scheidegger2008-03-281-1/+0
|
* gallium: Bump PIPE_MAX_SAMPLERS to 16.Michal Krol2008-03-281-1/+1
| | | | We need it to fulfil D3D minimum requirements.
* gallium: replace PIPE_ATTRIB_MAX with PIPE_MAX_ATTRIBSBrian2008-03-271-1/+2
| | | | | The later follows the naming scheme of other limits. Keep the old definition until all possible usage is updated.
* gallium: Introduce flatshade_first field to rasterizer_state.Michal Krol2008-03-251-0/+1
| | | | | This bit tells us which vertex of the primitive is used to propagate color for the remaining vertices if flatshade mode.
* gallium: added width, height to pipe_framebuffer_stateBrian2008-03-201-0/+2
|
* gallium: added bypass_vs flag to rasterizer state (may be temporary)Brian2008-03-131-0/+1
|
* gallium: remove dead code related to shader semantic input/output infoBrian Paul2008-03-131-9/+0
|
* gallium: remove semantic info from pipe_shader_stateBrian Paul2008-03-131-0/+2
| | | | Brian's patch to clean up the shader interfaces.
* gallium: add some commonly implemented bits of hw stateKeith Whitwell2008-03-091-1/+3
|
* gallium: remove obsolete commentKeith Whitwell2008-03-031-2/+0
|
* gallium: remove unneeded pipe ptr from pipe_textureBrian2008-02-271-7/+3
|
* gallium: introduce 'pipe_screen' for context-independent functionsBrian2008-02-261-0/+2
| | | | | | | This will allow creating textures before a rendering context exists, for example. Only implemented in i915 driver for now. i915pipe->texture_create() just dispatches through to the i915screen->texture_create() to avoid state tracker changes for now.
* gallium: remove pipe parameter from pipe_texture_reference()Brian2008-02-261-0/+5
| | | | | Added pipe field to pipe_texture (temporary, see comments). First step toward context-less texture creation...