summaryrefslogtreecommitdiffstats
path: root/src/gallium
Commit message (Collapse)AuthorAgeFilesLines
* [g3dvl] rename is_format_supported to is_video_format_supported and move it ↵Christian König2011-07-088-38/+49
| | | | into screen object
* [g3dvl] rename get_param to get_video_param and move into screen objectChristian König2011-07-0711-33/+73
|
* Merge remote-tracking branch 'origin/master' into pipe-videoChristian König2011-07-04209-2557/+8228
|\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: configure.ac src/gallium/drivers/r600/r600_state_inlines.h src/gallium/tests/trivial/Makefile src/gallium/winsys/g3dvl/dri/XF86dri.c src/gallium/winsys/g3dvl/dri/driclient.c src/gallium/winsys/g3dvl/dri/driclient.h src/gallium/winsys/g3dvl/dri/xf86dri.h src/gallium/winsys/g3dvl/dri/xf86dristr.h src/gallium/winsys/r600/drm/r600_bo.c
| * Merge branch 'xa_branch'Thomas Hellstrom2011-07-0418-0/+3747
| |\ | | | | | | | | | | | | | | | | | | Conflicts: configure.ac Signed-off-by: Thomas Hellstrom <[email protected]>
| | * st/xa: Fix crosscompile builds with nonstandard ld locationsThomas Hellstrom2011-07-041-1/+1
| | | | | | | | | | | | Signed-off-by: Thomas Hellstrom <[email protected]>
| | * xa-vmwgfx: Remove unnecessary includeThomas Hellstrom2011-07-041-1/+0
| | | | | | | | | | | | Signed-off-by: Thomas Hellstrom <[email protected]>
| | * st/xa: Update README.Thomas Hellstrom2011-06-271-6/+14
| | | | | | | | | | | | Signed-off-by: Thomas Hellstrom <[email protected]>
| | * st/xa: Add a function to check for supported formatsThomas Hellstrom2011-06-275-9/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Typically this was done by having a surface creation function fail if the format was not supported. However, in some situations when changing hardware surface formats, it's desirable to do this check before attempting costly readback operations. Also updated the surface_redefine interface. Bump minor. Signed-off-by: Thomas Hellstrom <[email protected]>
| | * st/xa: Various fixes for composite.Thomas Hellstrom2011-06-273-16/+29
| | | | | | | | | | | | Signed-off-by: Thomas Hellstrom <[email protected]>
| | * st/xa: Solid fill (tested) and composite (yet untested)Thomas Hellstrom2011-06-2110-23/+974
| | | | | | | | | | | | Signed-off-by: Thomas Hellstrom <[email protected]>
| | * st/xa: Really support xa_surface_format. Bump minor.Thomas Hellstrom2011-06-215-4/+11
| | | | | | | | | | | | Signed-off-by: Thomas Hellstrom <[email protected]>
| | * st/xa: Support format-changing copy.Thomas Hellstrom2011-06-203-13/+53
| | | | | | | | | | | | Signed-off-by: Thomas Hellstrom <[email protected]>
| | * st/xa: Make sure we blit all yuv regions.Thomas2011-06-161-0/+1
| | | | | | | | | | | | | | | | | | The code forgot to increment a pointer. Signed-off-by: Thomas Hellstrom <[email protected]>
| | * st/xa: Fix a typo pointed out by Keith Whitwell.Thomas2011-06-161-1/+1
| | | | | | | | | | | | Signed-off-by: Thomas Hellstrom <[email protected]>
| | * target/dri-vmwgfx: Throttle dri clients by default.Thomas2011-06-161-0/+1
| | | | | | | | | | | | | | | | | | | | | Throttle pretty hard in order to prioritize user-space interactivity over 3D application speed. May revisit this later. Signed-off-by: Thomas <[email protected]>
| | * st/xa: Initial import of the xa state-tracker and the xa-vmwgfx target.Thomas Hellstrom2011-06-1515-0/+2700
| | | | | | | | | | | | | | | | | | See the file src/gallium/state_trackers/xa/README for more info. Signed-off-by: Thomas Hellstrom <[email protected]>
| * | st/glx: Fix endless loop in drawable validationThomas Hellstrom2011-07-041-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a regression introduced with commit "st-api: Rework how drawables are invalidated v3" where the glx state tracker manager would invalidate a drawable each time it checks the drawable dimensions, even during a validate call, which resulted in an endless loop, since the state tracker would immediately detect the new invalidation and rerun the validate... This change marks the drawable invalid only if the drawable dimensions actually changed during the validate, which will result in at most a single unnecessary validate by the context running a validate during which the dimensions changed. To avoid unnecessary validates altogether, we need to implement yet another st-api change: Returning the current time stamp from the validate function, as suggested by Chia-I Wu. The glx state tracker manager could then return the stamp resulting from the last drawable dimension check. Signed-off-by: Thomas Hellstrom <[email protected]>
| * | r600g: Support the PIPE_FORMAT_R16_FLOAT colorformat.Henri Verbeet2011-07-032-0/+8
| | | | | | | | | | | | NOTE: This is a candidate for the 7.11 branch.
| * | svga: Use the correct element size.José Fonseca2011-07-011-1/+1
| | | | | | | | | | | | | | | | | | Instead of always using the first element's size. This fixes flashing floor on CINEBENCH R10.
| * | u_upload_mgr: Use pipe_buffer_map_range istead of pipe_buffer_map.José Fonseca2011-07-011-5/+6
| | | | | | | | | | | | | | | pipe_buffer_map_range makes stricter assertions, and would have saved us grief detecting a bug in svga user buffer uploads.
| * | Gallium: fix buffer overflowMicael Dias2011-07-011-0/+11
| | | | | | | | | | | | Signed-off-by: José Fonseca <[email protected]>
| * | svga: Fix multiple uploads of the same user-buffer.Thomas Hellstrom2011-07-013-30/+90
| | | | | | | | | | | | | | | | | | | | | | | | If a user-buffer was referenced twice by a draw command, the affected ranges were uploaded separately, with only the last one being referenced by the hardware. Make sure we upload only a single range. Signed-off-by: Thomas Hellstrom <[email protected]>
| * | svga: Ignore redefine_user_buffer callsThomas Hellstrom2011-07-011-15/+2
| | | | | | | | | | | | | | | | | | | | | | | | We currently always treat contents of user-buffers as volatile so we don't need to take any particular action when the state tracker announces that the contents has changed. Signed-off-by: Thomas Hellstrom <[email protected]>
| * | svga: fix incorrect user buffer size computation for instance divisor caseBrian Paul2011-07-011-3/+3
| | | | | | | | | | | | See preceeding commit for more info.
| * | svga: fix incorrect user buffer size computationBrian Paul2011-07-011-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Viewperf uses some unusual vertex arrays where the stride is less than the element size. In this case, the stride was 4 while the element size was 12. The difference of 8 bytes causes us to miss uploading the tail bit of the array data. Typically the stride is >= the element size so there was no problem with other apps.
| * | svga: Handle null buffers in svga_buffer_is_user_buffer().José Fonseca2011-07-011-1/+5
| | |
| * | gallium/svga: Upload only parts of user-buffers that we actually useThomas Hellstrom2011-07-016-71/+208
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Stream user buffer contents rather than trying to maintain persistent host / hardware copies. Resulting negative array offsets are not allowed by the hardware, (well, at least not according to header files), so adjust index bias to make all array offsets positive. Signed-off-by: Thomas Hellstrom <[email protected]>
| * | gallium/svga: Make use of u_upload_flush().Thomas Hellstrom2011-07-012-2/+10
| | | | | | | | | | | | | | | | | | This enables us to pack more data into single upload buffers. Signed-off-by: Thomas Hellstrom <[email protected]>
| * | gallium/util: Upload manager optimizationsThomas Hellstrom2011-07-012-13/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make sure that the upload manager doesn't upload data that's not dirty. This speeds up the viewperf test proe-04/1 a factor 5 or so on svga. Also introduce an u_upload_unmap() function that can be used instead of u_upload_flush() so that we can pack even more data in upload buffers. With this we can basically reuse the upload buffer across flushes. Signed-off-by: Thomas Hellstrom <[email protected]>
| * | svga: Flush when switching between HW to SW TNL, after updating need_swtnl.José Fonseca2011-07-012-11/+15
| | | | | | | | | | | | | | | Also, only flush when going from HW TNL to SW TNL, given it is impossible for the buffers resulting from SWTNL to be ever referred by HW TNL path.
| * | st/egl: fix a typoChia-I Wu2011-07-011-2/+2
| | | | | | | | | | | | Wrong goto labels.
| * | st/egl: remove unused headerChia-I Wu2011-07-011-3/+0
| | |
| * | gallivm: Pass in CPU name to createTargetMachine when on llvm-3.0.Vinson Lee2011-06-301-0/+4
| | | | | | | | | | | | | | | llvm-3.0svn revision 134127 changed createTargetMachine to take in an additional argument of the CPU name.
| * | gallivm: Rename TargetInstrDesc to MCInstrDesc when using llvm-3.0.Vinson Lee2011-06-301-0/+4
| | | | | | | | | | | | llvm-3.0svn revision 134021 renamed TargetInstrDesc to MCInstrDesc.
| * | r600g: fix check for empty csVadim Girlin2011-06-303-4/+4
| | |
| * | scons: Expose pkg-config in a simpler manner.José Fonseca2011-06-3015-38/+26
| | |
| * | scons: Buid libGL.so (WIP).José Fonseca2011-06-301-1/+1
| | |
| * | i915g: Implement surface format fixup without adding an extra instruction.Stéphane Marchesin2011-06-301-31/+54
| | | | | | | | | | | | We also avoid writing output color twice, which might not work when we run out of phases.
| * | i915g: update TODO.Stéphane Marchesin2011-06-291-0/+2
| | |
| * | target/egl-static: fix a compiler warningChia-I Wu2011-06-301-0/+3
| | |
| * | i915g: Try to do better in the shader compiler.Stéphane Marchesin2011-06-293-20/+41
| | | | | | | | | | | | | | | | | | - Copy i915c's support for phases, that should allow us to run a coupe more shaders. - Fix the error messages. - Still try to proceed when we get a shader that's too long.
| * | Gallium:draw:aaline and aapoint: Restore the old hooks when we destroy our ↵Stéphane Marchesin2011-06-292-0/+17
| | | | | | | | | | | | stage.
| * | i915g: Move definition of M_PI in i915_fpc_translate.cJon TURNEY2011-06-291-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | Move defintion of M_PI (for the benefit of <math.h> which do not define it), to before the first use of it Signed-off-by: Jon TURNEY <[email protected]> Reviewed-by: Brian Paul <[email protected]>
| * | st/glx: Fix compilation errorThomas Hellstrom2011-06-292-4/+4
| | | | | | | | | | | | | | | | | | | | | Fix compilation error due to commit "Rework how drawables are invalidated v3" Signed-off-by: Thomas Hellstrom <[email protected]>
| * | st/dri: Get rid of the evil struct dri_drawable::context memberThomas Hellstrom2011-06-292-5/+0
| | | | | | | | | | | | | | | | | | It's incorrect to assume a single context bound to a drawable. Signed-off-by: Thomas Hellstrom <[email protected]>
| * | st-api: Rework how drawables are invalidated v3.Thomas Hellstrom2011-06-2911-70/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The api and the state tracker manager code as well as the state tracker code assumed that only a single context could be bound to a drawable. That is not a valid assumption, since multiple contexts can bind to the same drawable. Fix this by making it the state tracker's responsibility to update all contexts binding to a drawable Note that the state trackers themselves don't use atomic stamps on frame-buffers. Multiple context rendering to the same drawable should be protected by the application. Signed-off-by: Thomas Hellstrom <[email protected]>
| * | i915g: Fix unimplemented Abs comment.Stéphane Marchesin2011-06-291-1/+1
| | |
| * | i915g: If we have a program, that means the other fields are ours and we can ↵Stéphane Marchesin2011-06-281-3/+5
| | | | | | | | | | | | | | | | | | free them. Otherwise they probably belong to draw.
| * | i915g: Don't overflow the program buffer.Stéphane Marchesin2011-06-281-13/+25
| | | | | | | | | | | | Otherwise it corrupts other fields of the struct and hilarity ensues.
| * | i915g: Update the TODO with another idea.Stéphane Marchesin2011-06-281-0/+2
| | |