aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i965simple
Commit message (Collapse)AuthorAgeFilesLines
* gallium: Make sure we flush before some texture / buffer operations.Thomas Hellstrom2009-04-151-0/+25
| | | | | | | Also implement context member functions to optimize away those flushes whenever possible. Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
* i965simple: remove pipe_texture::compressed referenceBrian Paul2009-04-091-1/+1
|
* gallium: Remove some little-used fields from struct pipe_surface.Michel Dänzer2009-03-261-1/+0
|
* i965: fix point rasterization when rendering to FBORobert Ellison2009-03-241-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | The FBO pixel coordinate system, with (0,0) as the upper-left pixel, is inverted in Y compared to the normal OpenGL pixel coordinate system, which has (0,0) as its lower-left pixel. Viewport and polygon stipple are sensitive to this inversion; so is point rasterization. The basic fix is simple: when rendering to an FBO, instead of the normal RASTRULE_UPPER_RIGHT that's appropriate for OpenGL windows, use the Y inversion RASTRULE_LOWER_RIGHT. Unfortunately, current Intel documentation has this value listed as "Reserved, but not seen as useful". It does work on at least some i965-class devices, though; and the worst that could happen if an older device didn't support it would be incorrect point rasterization to FBOs, which is what happens already, so this fix is at least no worse than what happens presently, and is better for some (and possibly all) i965-class devices.
* gallium: Remove do_flip argument from surface_copyJakob Bornecrantz2009-03-131-7/+6
| | | | | | | I should have gotten most uses and implementation correctly fixed, but things might break. Feel free to blame me.
* gallium: Unify reference counting.Michel Dänzer2009-03-042-26/+14
| | | | | | | | | | | | | | 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().
* gallium: Improve makefiles for librariesJakob Bornecrantz2009-02-201-2/+0
| | | | | | | | The template makefile that most libraries in gallium included was based on dri and had a bunch unrelevant junk in it. Update it and improve the depending makefiles.
* util: Move p_debug.h into util module.José Fonseca2009-02-181-1/+1
| | | | | The debug functions depend on several util function for os abstractions, and these depend on debug functions, so a seperate module is not possible.
* brw: Fix build -- rename Size to NrTokens.Michal Krol2009-02-101-1/+1
|
* gallium: remove pipe_buffer from surfacesZack Rusin2009-02-024-7/+10
| | | | | | | 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: initialize simple screen in driversZack Rusin2009-01-311-0/+2
|
* gallium: make p_winsys internalZack Rusin2009-01-309-12/+12
| | | | | move it to pipe/internal/p_winsys_screen.h and start converting the state trackers to the screen usage
* gallium: give the screen priority when it comes to buffer allocationsZack Rusin2009-01-292-10/+8
| | | | | | allows the driver to overwrite buffer allocation, first step on the way to making winsys interface internal to the drivers. state trackers and the code above it will go through the screen
* gallium: remove redundant size from the constant bufferZack Rusin2009-01-271-3/+3
| | | | reuse the size of the actual buffer
* gallium: it's a reference value, not a reference numberZack Rusin2009-01-271-1/+1
|
* gallium: standardize naming of masksZack Rusin2009-01-272-8/+8
|
* 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/+4
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* i965: Use pipe_buffer_* inlines as much as possible.José Fonseca2008-09-041-5/+5
|
* gallium: Have pipe_buffer_* receive a pipe_screen instead of a pipe_context.José Fonseca2008-09-032-3/+3
| | | | | We want to use the pipe_buffer_* inlines everywhere, but a pipe context is not always available nor is it needed.
* gallium: refactor/replace p_util.h with util/u_memory.h and util/u_math.hBrian Paul2008-08-2422-28/+38
| | | | Also, rename p_tile.[ch] to u_tile.[ch]
* gallium: move pipe_copy_rect(), pipe_fill_rect() protos into new u_rect.h headerBrian Paul2008-08-221-0/+1
|
* gallium: replace align_int() with align()Brian Paul2008-08-221-4/+4
| | | | The two functions are identical. Removed align_int() from p_util.h
* gallium: Add destroy callback to all *_winsys interfaces.José Fonseca2008-08-083-0/+10
| | | | For consistency and to simplify these objects' destruction.
* i965: Remove extraneous arg to debug_printf.José Fonseca2008-08-081-1/+1
|
* Merge tgsi/exec and tgsi/util directories.José Fonseca2008-07-287-8/+8
|
* gallium: Finer grained is_format_supported.José Fonseca2008-07-191-1/+4
|
* gallium: Drop pipe_texture->cpp and pipe_surface->cpp.José Fonseca2008-06-275-125/+79
| | | | | The chars-per-pixel concept falls apart with compressed and yuv images, where more than one pixel are coded in a single data block.
* scons: Fix i965/xlib build.José Fonseca2008-06-271-0/+1
|
* gallium: change surface_copy()'s do_flip to booleanBrian Paul2008-06-231-1/+1
|
* gallium: fix bad srcy coord if do_flipBrian Paul2008-06-231-1/+1
|
* brw: SWZ no longer aliases MOV.Michal Krol2008-06-021-1/+1
|
* brw: Fix build after TGSI declaration interface changes.Michal Krol2008-05-314-17/+11
|
* Revert DOS line endings.José Fonseca2008-05-262-1153/+1153
|
* Merge branch 'gallium-0.1' into gallium-tex-surfacesBrian Paul2008-05-181-8/+11
|\
| * gallium: in drivers, make copy of tokens passed to pipe->create_vs/fs_state()Brian Paul2008-05-171-8/+11
| | | | | | | | The caller can then free the token array immediately.
* | brw: remove dead codeKeith Whitwell2008-05-021-8/+0
| |
* | gallium: tex surface checkpointKeith Whitwell2008-05-012-32/+21
|/
* gallium: use the newer PIPE_FORMAT_x_UNORM format namesBrian Paul2008-04-302-16/+16
|
* gallium: Don't assume snprintf are always available.José Fonseca2008-04-151-1/+2
|
* gallium: Eliminate p_winsys::printfJosé Fonseca2008-03-312-6/+5
| | | | Not convenient and almost not used at all. Better replacements in p_debug.h
* gallium: Set vertex state/buffers en-mass.Brian Paul2008-03-291-28/+32
|
* gallium: remove redundant compare bit in sampler stateRoland Scheidegger2008-03-281-2/+1
|
* gallium: replace PIPE_ATTRIB_MAX with PIPE_MAX_ATTRIBSBrian2008-03-274-10/+10
| | | | | The later follows the naming scheme of other limits. Keep the old definition until all possible usage is updated.
* gallium: Change pipe->flush() interface to optionally return a fence.Michel Dänzer2008-03-261-10/+3
| | | | | The cell driver still uses an internal CELL_FLUSH_WAIT flag, in the long run proper fencing should be implemented for it.
* gallium: add face, dirtyLevels params to pipe->texture_update()Brian Paul2008-03-191-1/+2
| | | | | This provides better information about which images in texture object have changed. Also, call texture_update() from more places previously missed.
* remove reference to obsolete ExtDivideBrian2008-03-121-4/+0
|
* gallium: Add TEX_FILTER_ANISO img filterKeith Whitwell2008-03-121-19/+19
| | | | | | Hardware almost universally expects us to set a special filtering mode when anisotropic filtering is enabled, as opposed to varying a max-aniso values. Do this once in the state tracker & simplify the driver code.
* gallium: michel's patch to rework texture/sampler binding interfaceKeith Whitwell2008-03-054-1117/+1149
| | | | | Bind all the samplers/textures at once rather than piecemeal. This is easier for drivers to understand.
* gallium/i965: remove more dependencies on pipe_shader_state semantic infoBrian2008-02-273-5/+5
|