summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/softpipe
Commit message (Collapse)AuthorAgeFilesLines
* Added origin_lower_left field to pipe_rasterizer_stateBrian2007-12-142-7/+23
| | | | | | This controls whether the window origin is considered to be the lower-left or upper-left corner. This effects computation of gl_FragCoord and the application of polygon stipple.
* Don't always declare frag shader INPUT[0] as fragment position.Brian2007-12-146-161/+267
| | | | | | | | | | | | We were doing this for the sake of softpipe and the tgsi intergrepter since we always need the fragment position and W-coordinate information in order to compute fragment interpolants. But that's not appropriate for hardware drivers. The tgsi interpreter now get x,y,w information from a separate tgsi_exec_vector variable setup by softpipe. The new pipe_shader_state->input_map[] defines how vert shader outputs map to frag shader inputs. It may go away though, since one can also examine the semantic label on frag shader input[0] to figure things out.
* remove unused varBrian2007-12-131-2/+0
|
* 965: get fragment shader compiler compilingKeith Whitwell2007-12-131-4/+0
| | | | Don't think that it will run though.
* Add QuadX,Y fields to tgsi_exec_machine to pass quad's position to tgsi ↵Brian2007-12-131-1/+10
| | | | | | | | interpreter. The tgsi linear/perspective attribute code now uses these values rather than input[0]. Need to update SSE path to take quad x,y as function params. Then, we can remove additional code.
* added r5g5b5_put_tile_rgba()Brian2007-12-121-2/+33
|
* remove #includeBrian2007-12-121-1/+1
|
* Move float/rgba tile get/put functions into new file.Brian2007-12-124-666/+777
| | | | | | This should be moved into a gallium util lib (location tbd) so it can also be used by the state tracker. Then, remove the pipe->get/put_tile_rgba() functions.
* PIPE_SCREEN_SURFACE no longer neededBrian2007-12-121-3/+1
|
* Re-org of st_create_framebuffer() and renderbuffer format selection.Brian2007-12-121-0/+5
| | | | | | | | st_create_framebuffer() now takes pipe_formats for the color, depth, stencil buffers. This avoids a round-about chain of calls to pipe->is_format_supported() for window renderbuffers (their format never changes). Renderbuffer format selection code in st_format.c is simpler now too.
* move some code to avoid deref of NULL ptrBrian2007-12-121-3/+3
|
* softpipe: Support for PIPE_FORMAT_A4R4G4B4_UNORM and PIPE_FORMAT_R5G6B5_UNORM.Michel Dänzer2007-12-111-0/+59
| | | | | The packedpixels test runs with the xlib winsys, though not all cases look correct yet.
* Rework gallium and mesa queries a little.Keith Whitwell2007-12-116-43/+162
| | | | | | Add a 'CheckQuery()' driver callback to mesa to check query completion. Make pipe_query an opaque type. Rework softpipe queries, support overlapping occlusion queries.
* Redo the way we pass arguments to the llvm.Zack Rusin2007-12-111-3/+2
| | | | | simply pass aligned arrays, they should cast to vectors without any problems. also remove unnecessary memset
* Implement kilp and make it workZack Rusin2007-12-111-1/+1
|
* gallium: remove set_sampler_units interfaceKeith Whitwell2007-12-115-23/+6
| | | | | The effect of this mapping can be acheived by the state tracker and setting up the pipe texture state pointers to incorporate its affects.
* gallium: remove redundant clear_color state.Keith Whitwell2007-12-114-13/+0
|
* gallium: Remove feedback interfaces from pipe driver.Keith Whitwell2007-12-116-109/+0
| | | | | Something similar will return when geometry shaders are added, but for now this interface is not required.
* Add surface storage allocation function to winsys interface.José Fonseca2007-12-111-2/+2
|
* minor clean-ups, commentsBrian2007-12-101-16/+19
|
* gallium: remove unnecessary guards on qs->nextKeith Whitwell2007-12-1012-30/+14
|
* Add 'type' parameter to is_format_supported() to specify texture vs. drawing ↵Brian2007-12-102-13/+27
| | | | | | surface, etc. Additional types may be added in the future.
* disable assertion in sp_tile_cache_set_surface() for nowBrian2007-12-101-1/+1
|
* Fix up some confusion wrt winsys->buffer_create alignment / flags parameters.Michel Dänzer2007-12-101-4/+1
| | | | intel_winsys works again.
* use quadColor local varBrian2007-12-095-108/+114
|
* Fix looping for multi-color buffer writing.Brian2007-12-096-9/+11
|
* Adapt for winsys interface changes.José Fonseca2007-12-091-1/+3
|
* gallium: use SSE by defaultJosé Fonseca2007-12-091-1/+1
|
* gallium: add draw_stage::destroy().Michal2007-12-092-0/+18
|
* Try to reduce the frequency of calls to pipe->get_tex_surface()Brian2007-12-071-9/+32
| | | | Save the surface info in the tile cache and re-use whenever possible.
* shorten loops over color bufsBrian2007-12-073-3/+3
|
* code re-org in softpipe_clear()Brian2007-12-071-4/+13
|
* clean-upsBrian2007-12-071-14/+6
|
* Tile clearing optimizations.Brian2007-12-073-151/+147
| | | | Clear using int values rather than floats when possible. Better performance now.
* Define PIPE_FORMAT_ tokens as an enum set, rather than #defines.Brian2007-12-073-3/+5
| | | | | This makes debugging a _lot_ easier. In gdb, "print format" used to display 613570600, now you see PIPE_FORMAT_A8R8G8B8_UNORM.
* Get rid of "duplicate" formats.Brian2007-12-075-56/+56
| | | | For example, replace PIPE_FORMAT_U_A8_R8_G8_B8 with PIPE_FORMAT_A8R8G8B8_UNORM
* Enable the tile clear "optimization"Brian2007-12-071-1/+1
| | | | | | Not really faster yet because we're using the float-valued put/get_tile() functions so we're doing quite a bit of float/int conversion. That can be fixed though...
* Make sp_tile_cache_flush_clear() static.Brian2007-12-072-36/+48
| | | | Also, misc clean-ups, comments.
* Convert the clearValue back to floats for sp_tile_cache_clear()Brian2007-12-071-4/+32
| | | | It might be nice if sp->clear() took the color/value as floats...
* Some tile cache improvements, clean-ups.Brian2007-12-074-148/+206
| | | | | Code for optimized clears (per-tile flag indicating clear status) in place but not enabled yet.
* don't dereference pt after realloc - fixes valgrind errorBrian2007-12-071-1/+1
|
* add some whitespaceBrian2007-12-071-0/+6
|
* Move struct softpipe_texture definition into sp_texture.hBrian2007-12-076-32/+45
| | | | Also, added softpipe_texture() cast wrapper.
* minor code movementBrian2007-12-071-3/+2
|
* Eliminate struct pipe_region.Michel Dänzer2007-12-0712-244/+105
| | | | | Directly use struct pipe_buffer_handle for storage and struct pipe_surface for (un)mapping.
* Hide texture layout details from the state tracker.Michel Dänzer2007-12-0615-130/+229
| | | | pipe->get_tex_surface() has to be used for access to texture image data.
* added tile funcs for B8G8R8A8 formatBrian2007-12-051-0/+70
|
* Move dimensions from struct pipe_region to struct pipe_surface.Michel Dänzer2007-11-293-233/+213
|
* gallium: remove sp_headers.h references.Michal Krol2007-11-232-2/+0
|
* gallium: reorg tgsi directories.Michal Krol2007-11-235-8/+7
|