summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
Commit message (Collapse)AuthorAgeFilesLines
* gallium: make state tracker explictly ask for rendercache flushesKeith Whitwell2007-12-206-8/+9
|
* gallium: translate ARB fp/vp immediates consistently to tgsi immediatesKeith Whitwell2007-12-201-4/+20
|
* Add some prototype code for converting RET to END for main(). Disabled for now.Brian2007-12-191-3/+17
|
* Fix problem with initial viewport/scissor size.Brian2007-12-194-56/+70
| | | | | | | | | | | If an app never called glViewport, the viewport size was always 0 by 0 pixels. Now pass initial size to st_create_framebuffer() and initialize the viewport and scissor bounds in st_make_current(). This could also be fixed by ensuring the gl_framebuffers passed to _mesa_make_current() were initialized to the right size. But that involves allocating the renderbuffers/pipe_surfaces earlier and that runs into some other issues ATM. Also remove obsolete createRenderbuffers param to st_create_framebuffer().
* convert Mesa OPCODE_END to TGSI_OPCODE_END, not TGSI_OPCOD_RETBrian2007-12-191-1/+1
|
* special-case PSIZE tooBrian2007-12-191-1/+6
|
* new assertionsBrian2007-12-191-0/+3
|
* actually set the max_index. useful in the driverZack Rusin2007-12-191-2/+2
|
* turn off TGSI_DEBUGBrian2007-12-181-1/+1
|
* fix bug on GL_VERTEX_PROGRAM_TWO_SIDE pathBrian2007-12-181-1/+1
|
* gallium: rationalize vertex_element state packetKeith Whitwell2007-12-181-3/+3
| | | | | | | | Remove dst_offset (not used) Add nr_components, which could be calculated from format, but would be too much effort. Update i965 driver to cope.
* Emit declarations for constants (references to the const buffer)Brian2007-12-171-1/+57
|
* gallium: incorporate alpha state into depth_stencil state object.Keith Whitwell2007-12-179-179/+62
|
* Added origin_lower_left field to pipe_rasterizer_stateBrian2007-12-141-0/+2
| | | | | | 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.
* update_samplers() didn't respect the sampler->texunit mapping.Brian2007-12-141-9/+16
| | | | This fixes the glsl/texdemo1.c program.
* emit tgsi declarations for texture samplersBrian2007-12-141-0/+27
|
* Don't always declare frag shader INPUT[0] as fragment position.Brian2007-12-143-51/+45
| | | | | | | | | | | | 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.
* add missing code for PIPE_FORMAT_S8_UNORM renderbufferBrian2007-12-131-0/+4
|
* Re-org of st_create_framebuffer() and renderbuffer format selection.Brian2007-12-126-91/+71
| | | | | | | | 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.
* Try PIPE_FORMAT_R5G6B5_UNORM for GL_RGB5 request.Brian2007-12-121-0/+2
|
* softpipe: Support for PIPE_FORMAT_A4R4G4B4_UNORM and PIPE_FORMAT_R5G6B5_UNORM.Michel Dänzer2007-12-111-0/+4
| | | | | The packedpixels test runs with the xlib winsys, though not all cases look correct yet.
* Remove internal_format field from struct pipe_texture.Michel Dänzer2007-12-114-17/+10
| | | | It's state tracker specific / not really necessary anyway.
* Rework gallium and mesa queries a little.Keith Whitwell2007-12-111-19/+49
| | | | | | Add a 'CheckQuery()' driver callback to mesa to check query completion. Make pipe_query an opaque type. Rework softpipe queries, support overlapping occlusion queries.
* gallium: remove clear values from depth, stencil stateKeith Whitwell2007-12-111-2/+0
|
* gallium: remove set_sampler_units interfaceKeith Whitwell2007-12-116-31/+29
| | | | | 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-66/+0
|
* gallium: Remove feedback interfaces from pipe driver.Keith Whitwell2007-12-112-24/+21
| | | | | Something similar will return when geometry shaders are added, but for now this interface is not required.
* gallium: remove dead pbo zcopy codeKeith Whitwell2007-12-111-31/+0
|
* Add surface storage allocation function to winsys interface.José Fonseca2007-12-111-23/+13
|
* XXX comments about some hard-coded values that need to be fixedBrian2007-12-102-0/+2
|
* Add 'type' parameter to is_format_supported() to specify texture vs. drawing ↵Brian2007-12-106-73/+71
| | | | | | surface, etc. Additional types may be added in the future.
* don't use get/put_tile_rgba() for accum buffer accessesBrian2007-12-101-19/+98
|
* Fix up some confusion wrt winsys->buffer_create alignment / flags parameters.Michel Dänzer2007-12-101-1/+1
| | | | intel_winsys works again.
* Correct user VBO size.Ben Skeggs2007-12-101-3/+8
|
* Remove stray references to struct pipe_region.Michel Dänzer2007-12-101-1/+0
|
* Adapt for winsys interface changes.José Fonseca2007-12-091-1/+1
|
* gallium: support the full range of possible vertex typesKeith Whitwell2007-12-091-23/+129
|
* add fence interfaces and buffer create flags to pipe_winsyskeithw2007-12-093-4/+4
|
* New vbo_set_draw_func() to keep vbo context opaque to state tracker and tnl ↵Brian2007-12-072-10/+4
| | | | module.
* Move _mesa_init_glsl_driver_functions() into shader_api.cBrian2007-12-071-1/+1
| | | | | This allows making a bunch of functions static, and removes a state tracker dependency on driverfuncs.c
* Define PIPE_FORMAT_ tokens as an enum set, rather than #defines.Brian2007-12-075-25/+23
| | | | | This makes debugging a _lot_ easier. In gdb, "print format" used to display 613570600, now you see PIPE_FORMAT_A8R8G8B8_UNORM.
* include tgsi_dump.hBrian2007-12-071-0/+1
|
* Replace "duplicate" formatsBrian2007-12-074-69/+69
|
* Add PIPE_FORMAT_U_B8_G8_R8_A8 in default_rgba_format().Brian2007-12-071-22/+28
| | | | Also, rewrite/simplify default_rgba_format() and default_depth_format().
* added ST_SURFACE_DEPTHBrian2007-12-072-1/+2
|
* move surface pitch calculation so it always gets updatedBrian2007-12-071-2/+3
|
* fix void pointer arithmetic warningsBrian2007-12-071-7/+14
|
* Eliminate struct pipe_region.Michel Dänzer2007-12-079-89/+82
| | | | | Directly use struct pipe_buffer_handle for storage and struct pipe_surface for (un)mapping.
* Remove remnants of 'intel' from active state tracker code.Michel Dänzer2007-12-061-5/+2
|
* st_mesa_format_to_pipe_format: Handle MESA_FORMAT_ARGB4444.Michel Dänzer2007-12-061-0/+2
|