summaryrefslogtreecommitdiffstats
path: root/src/gallium
Commit message (Collapse)AuthorAgeFilesLines
* ilo: update some outdated gen checksChia-I Wu2015-02-141-4/+4
| | | | | | Update gen checks for 3DSTATE_POLY_STIPPLE_OFFSET, 3DSTATE_POLY_STIPPLE_PATTERN, 3DSTATE_LINE_STIPPLE, and 3DSTATE_AA_LINE_PARAMETERS.
* ilo: fix rectlist length on Gen8Chia-I Wu2015-02-141-1/+1
| | | | 5 PIPE_CONTROLs, 2 3DSTATE_WM_HZ_OP, and depth buffer setup require 65 DWords.
* ilo: fix 3DSTATE_VF_TOPOLOGYChia-I Wu2015-02-141-2/+1
| | | | The pipe primitive type was wrongly translated twice.
* os,llvmpipe: Set rasterizer thread names on Linux.Jose Fonseca2015-02-132-1/+18
| | | | | | | | | | | To help identify llvmpipe rasterizer threads -- especially when there can be so many. We can eventually generalize this to other OSes, but for that we must restrict the function to be called from the current thread. See also http://stackoverflow.com/a/7989973 Reviewed-by: Roland Scheidegger <[email protected]>
* vc4: Make SF be a flag on the QIR instructions.Eric Anholt2015-02-128-51/+47
| | | | | | | | | | | | Right now the places that used to emit a mov.sf just put the SF on the previous instruction when it generated the source of the SF value. Even without optimization to push the sf up further (and kill thus potentially kill more MOVs), this gets us: total uniforms in shared programs: 13455 -> 13457 (0.01%) uniforms in affected programs: 3 -> 5 (66.67%) total instructions in shared programs: 40296 -> 40198 (-0.24%) instructions in affected programs: 12595 -> 12497 (-0.78%)
* auxiliary/vl: bring back the VL code for the dri targetsEmil Velikov2015-02-128-6/+25
| | | | | | | | | | | | | | | | | With commit c642e87d9f4(auxiliary/vl: rework the build of the VL code) we split out the VL code into a separate static library that was meant to be used by the VL targets alone - va, vdpau, xvmc. The commit failed to consider the way we handle vdpau-gl interop and broke it. Bring back the functionality by keeping the vl <> vl_stub separation as requrested by Christian. v2: Update the omx target as well. Update mesa-stable email address. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=86837 Cc: "10.5" <[email protected]> Signed-off-by: Emil Velikov <[email protected]> Tested-by: Andy Furniss <[email protected]>
* ilo: update screen init for Gen8Chia-I Wu2015-02-121-8/+32
| | | | | This is very preliminary and is only tested with glxgears. All information about Gen8 is derived from i965 and beignet.
* ilo: update outdated render command emissions for Gen8Chia-I Wu2015-02-121-4/+4
|
* ilo: update rectlist command emission for Gen8Chia-I Wu2015-02-124-7/+93
|
* ilo: update draw command emission for Gen8Chia-I Wu2015-02-126-34/+517
|
* ilo: update surface state emission for Gen8Chia-I Wu2015-02-121-7/+8
|
* ilo: update dynamic state emission for Gen8Chia-I Wu2015-02-121-14/+26
|
* ilo: update outdated gen assertions for Gen8Chia-I Wu2015-02-126-24/+23
|
* ilo: add new WM related helpers for Gen8Chia-I Wu2015-02-121-0/+76
|
* ilo: update VS related functions for Gen8Chia-I Wu2015-02-122-1/+31
|
* ilo: update VF related functions for Gen8Chia-I Wu2015-02-122-42/+157
|
* ilo: update SAMPLER_STATE for Gen8Chia-I Wu2015-02-121-29/+42
|
* ilo: update SAMPLER_BORDER_COLOR_STATE for Gen8Chia-I Wu2015-02-121-2/+3
|
* ilo: update depth clear value for Gen8Chia-I Wu2015-02-121-1/+4
|
* ilo: update ilo_zs_surface for Gen8Chia-I Wu2015-02-125-82/+137
|
* ilo: update ilo_view_surface for Gen8Chia-I Wu2015-02-124-43/+141
|
* ilo: update texture layout for Gen8Chia-I Wu2015-02-121-1/+3
|
* ilo: update ilo_blend_state and related functions for Gen8Chia-I Wu2015-02-126-22/+319
|
* ilo: update ilo_dsa_state and related functions for Gen8Chia-I Wu2015-02-123-6/+89
|
* ilo: update multisample related states for Gen8Chia-I Wu2015-02-123-1/+116
|
* ilo: update WM and PS related functions for Gen8Chia-I Wu2015-02-122-76/+264
|
* ilo: update SBE related functions for Gen8Chia-I Wu2015-02-121-20/+97
|
* ilo: update SF related functions for Gen8Chia-I Wu2015-02-123-81/+267
|
* ilo: update CLIP related functions for Gen8Chia-I Wu2015-02-121-18/+20
|
* ilo: update SF_CLIP_VIEWPORT for Gen8Chia-I Wu2015-02-123-14/+40
|
* ilo: update streamout related functions for Gen8Chia-I Wu2015-02-123-44/+78
|
* ilo: update 3DSTATE_{DS,HS,GS} for Gen8Chia-I Wu2015-02-121-8/+24
|
* ilo: update 3DSTATE_CONSTANT_x for Gen8Chia-I Wu2015-02-121-3/+16
|
* ilo: update 3DSTATE_URB_x for Gen8Chia-I Wu2015-02-121-1/+8
|
* ilo: update 3DSTATE_PUSH_CONSTANT_ALLOC_x for Gen8Chia-I Wu2015-02-121-7/+8
|
* ilo: update render engine common helpers for Gen8Chia-I Wu2015-02-124-34/+91
|
* ilo: update BLT helpers for Gen8Chia-I Wu2015-02-121-25/+58
|
* ilo: update MI helpers for Gen8Chia-I Wu2015-02-122-30/+59
|
* ilo: add functions for Gen8 relocsChia-I Wu2015-02-121-6/+39
| | | | | Extend ilo_builder_writer_reloc() for Gen8 memory addressing. Add new wrappers, ilo_builder_surface_reloc64(() and ilo_builder_batch_reloc64().
* ilo: update the toy compiler for Gen8Chia-I Wu2015-02-125-91/+501
| | | | Based on what we know from the classic driver.
* ilo: update genhw headersChia-I Wu2015-02-1219-529/+1704
| | | | | | | Accumulated changes for various renames and additions, including Gen8 definitions. Some of the dynamic state __SIZE no longer means the size of an element, but the size of an array of elements. The changes can be seen in ilo_render_dynamic.c.
* ilo: clean up ilo_gpe_init_dsa()Chia-I Wu2015-02-121-54/+82
| | | | | Add dsa_get_stencil_enable_gen6(), dsa_get_depth_enable_gen6(), and dsa_get_alpha_enable_gen6() to be called from ilo_gpe_init_dsa().
* ilo: clean up ilo_gpe_init_blend()Chia-I Wu2015-02-123-87/+106
| | | | Make ilo_blend_state more space efficient and forward-looking.
* ilo: clean up sample patternsChia-I Wu2015-02-125-68/+71
| | | | | Use signed int for sample positions and add helpers to access them. Call them patterns instead of positions.
* nv50,nvc0: Mark PIPE_QUERY_TIMESTAMP_DISJOINT as ready immediatelyTiziano Bacocco2015-02-102-0/+6
| | | | | | | | | Without this when an application issues that query, it would try to wait the result from the gpu, and since no query has been actually issued, it will wait forever. Signed-off-by: Tiziano Bacocco <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
* nv50/ir: Fold IMM into MADRoy Spliet2015-02-101-0/+53
| | | | | | | | | | | | | Add a specific optimisation pass for NV50 to check whether SRC0 or SRC1 is a MOV dst, IMM. If so: fold the IMM in and try to drop the MOV. Must be done post-RA because it requires that SDST == SSRC2. V2: improve readability and add comments to clarify decisions V3: Remove redundant code... compiler already attempts to put the IMM in SSRC1 Signed-off-by: Roy Spliet <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
* nv50/ir: Add emit support for MAD IMM formatRoy Spliet2015-02-101-0/+8
| | | | | | | | | But don't enable generation of it in the opProperties, because we can't guarantee the SDST==SRC2 constraint until after register assignment. We'll add a post-RA folding pass to utilise this. Signed-off-by: Roy Spliet <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
* nv50/ir: Add support for MAD 4-byte opcodeRoy Spliet2015-02-102-8/+6
| | | | | | | | | | | | Add emission rules for negative and saturate flags for MAD 4-byte opcodes, and get rid of some of the constraints. Obviously tested with a wide variety of shaders. V2: Document MAD as supported short form V3: Split up IMM from short-form modifiers Signed-off-by: Roy Spliet <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
* nv50/ir: change the way float face is returnedIlia Mirkin2015-02-102-4/+6
| | | | | | | | | | | | The old way made it impossible for the optimizer to reason about what was going on. The new way is the same number of instructions (the neg gets folded into the cvt) but enables the optimizer to be cleverer if comparing to a constant (most common case). [The optimizer is presently not sufficiently clever to work this out, but it could relatively easily be made to be. The old way would have required significant complexity to work out.] Signed-off-by: Ilia Mirkin <[email protected]>
* gallium/hud: also try R8_UNORM format for font texture10.5-branchpointBrian Paul2015-02-071-9/+15
| | | | | | | Convert the code to try formats from an array rather than a bunch of if/else cases. Reviewed-by: Marek Olšák <[email protected]>