summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* turnip: Set up the correct tiling mode for small attachments.Eric Anholt2019-10-153-3/+17
| | | | | | | Noticed while debugging a tiling-looking issue by comparing our gmem blit setup to freedreno's. Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: Tell spirv_to_nir that we want fragcoord as a sysval.Eric Anholt2019-10-151-0/+1
| | | | | | | | Fixes ir3 compiler failure failure in dEQP-VK.renderpass.dedicated_allocation.formats.r8g8b8a8_unorm.clear.clear_draw (now just a rendering failure where the subpass clear isn't happening) Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: Fill in clear color packing for r10g11b11 and rgb9e5.Eric Anholt2019-10-151-0/+13
| | | | | | | | Fixes assertion failures in dEQP-VK.api.image_clearing.core.clear_color_image.2d.* for these formats, though the test set as a whole is stil failing. Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: Drop unused tu_pack_clear_value() return.Eric Anholt2019-10-152-4/+2
| | | | Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: add anisotropy and compressed formats to device featuresJonathan Marek2019-10-151-4/+4
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: disable tiling as necessaryJonathan Marek2019-10-151-3/+12
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: update setup_slicesJonathan Marek2019-10-153-49/+64
| | | | | | | | Deal with tiled r8g8 having different alignment and other updates taken from fd6_resource. Additionally track image samples/cpp. Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: add VK_KHR_sampler_mirror_clamp_to_edgeJonathan Marek2019-10-151-0/+1
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: add black border colorJonathan Marek2019-10-151-1/+30
| | | | | | | Avoids hangs and some texture tests are happy with just this. Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: improve sampler descriptorJonathan Marek2019-10-151-11/+11
| | | | | | | Fixes anisotropy and shadow texture Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: improve view descriptorJonathan Marek2019-10-151-33/+51
| | | | | | | Changes to make compressed, tiled, 3d, etc textures work Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: add more 2d_ifmt translationsJonathan Marek2019-10-151-9/+8
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: format table fixesJonathan Marek2019-10-151-19/+12
| | | | | | | | | | | * Fix R16G16 SCALED and R16G16B16A16 SCALED having texture format * Fix B5G6R5 swap value * Use R8_UINT instead of R8_UNORM for S8_UINT rb format * Disable 96-bit texture formats instead having a check for NPOT formats * Don't fail assert on D24X8 format Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: add format_is_uint/format_is_sintJonathan Marek2019-10-151-0/+22
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: add astc format layoutJonathan Marek2019-10-151-28/+28
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: fix assert failing for 0 color attachmentsJonathan Marek2019-10-151-2/+2
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: fix segmentation fault with compute pipelineJonathan Marek2019-10-151-1/+1
| | | | | | | Not supported, so always set pointer to NULL Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: fix segmentation fault in eventsJonathan Marek2019-10-152-4/+18
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: fix 32 vertex attributes caseJonathan Marek2019-10-151-3/+2
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* turnip: fix triangle stripJonathan Marek2019-10-151-1/+1
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* freedreno/regs: update a6xx 2d blit bitsJonathan Marek2019-10-151-22/+30
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]>
* radv: rename VK_KHR_shader_float16_int8 structs/constantsSamuel Pitoiset2019-10-151-3/+3
| | | | | | | Trivial change. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
* v3d: drop unused shader_rec_count member from contextIago Toral2019-10-152-3/+0
| | | | | | | Looks like this was copied from the vc4 driver where it is actually included in the submit CL ioctl. Reviewed-by: Eric Anholt <[email protected]>
* freedreno/ir3: implement fquantize2f16Jonathan Marek2019-10-141-0/+5
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Rob Clark <[email protected]>
* freedreno/ir3: implement texop_texture_samplesJonathan Marek2019-10-141-5/+9
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Rob Clark <[email protected]>
* freedreno/ir3: fix GETLOD for negative LODsJonathan Marek2019-10-141-2/+2
| | | | | | | Note: for output type U32, negative LOD is not sign extended from 16 bits Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Rob Clark <[email protected]>
* freedreno/ir3: implement fdd{x,y}_coarse opcodesJonathan Marek2019-10-141-0/+2
| | | | | | | Same as regular fddx/fddy. Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Rob Clark <[email protected]>
* freedreno/ir3: increase size of inputs/outputs arraysJonathan Marek2019-10-141-2/+2
| | | | | | | Makes it possible to support 32 varyings. Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Rob Clark <[email protected]>
* freedreno/ir3: remove input ncomp fieldJonathan Marek2019-10-144-6/+2
| | | | | Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Rob Clark <[email protected]>
* etnaviv: fix vertex buffer state emission for single stream GPUsLucas Stach2019-10-141-1/+1
| | | | | | | | | GPUs with a single supported vertex stream must use the single state address to program the stream. Fixes: 3d09bb390a39 (etnaviv: GC7000: State changes for HALTI3..5) Signed-off-by: Lucas Stach <[email protected]> Reviewed-by: Jonathan Marek <[email protected]>
* gallivm/draw/swr: make the gs_iface not depend on tgsi.Dave Airlie2019-10-154-80/+83
| | | | | | | | | | | | | This gs_iface doesn't seem to require a dependence on the tgsi context, except for the swr end prim code. This refactors the API to include all the info that the swr code needs in the interface rather than having to dig it out of the struct inheritance. This is a precursor to adding NIR support to llvmpipe. Reviewed-by: Jan Zielinski <[email protected]>
* iris: Implement the Gen < 9 tessellation quads workaroundKenneth Graunke2019-10-141-0/+3
| | | | | | | | Fixes several CTS tests: - KHR-GL46.tessellation_shader.vertex.vertex_spacing - KHR-GL46.tessellation_shader.tessellation_shader_point_mode.points_verification Fixes: 823609b1a39 ("iris/WIP: add broadwell support")
* anv: Advertise VK_KHR_spirv_1_4Caio Marcelo de Oliveira Filho2019-10-141-0/+1
| | | | Reviewed-by: Jason Ekstrand <[email protected]>
* vulkan: Update the XML and headers to 1.1.125Caio Marcelo de Oliveira Filho2019-10-141-5/+11
| | | | Acked-by: Jason Ekstrand <[email protected]>
* android: amd/common: export amd/llvm headersMauro Rossi2019-10-141-0/+1
| | | | | | | | | | | | | Fixes the following building error: external/mesa/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c:42:10: fatal error: 'ac_llvm_util.h' file not found ^~~~~~~~~~~~~~~~ 1 error generated. Fixes: 3a08110 ("amd: Move all amd/common code that depends on LLVM to amd/llvm.") Signed-off-by: Mauro Rossi <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
* gallium: rename PIPE_CAP_MAX_FRAMES_IN_FLIGHT to PIPE_CAP_THROTTLEJames Xiong2019-10-147-9/+7
| | | | | | | | | v2: [ Michel Dänzer ] * Update src/gallium/docs/source/screen.rst accordingly Signed-off-by: James Xiong <[email protected]> Reviewed-by: Michel Dänzer <[email protected]> # v1 Reviewed-by: Marek Olšák <[email protected]> # v1
* gallium: simplify throttle implementationJames Xiong2019-10-144-110/+13
| | | | | | | | | | | All gallium drivers currently set MAX_FRAME_IN_FLIGHT to either 1 or 0, which means that the drivers either throttle on the previous render or don't throttle, the current implementation is more complicated than necessary and can be simplified. Signed-off-by: James Xiong <[email protected]> Reviewed-by: Michel Dänzer <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
* radv: fix DCC fast clear code for intensity formatsSamuel Pitoiset2019-10-143-9/+31
| | | | | | | | | | This fixes a rendering issue with DiRT 4 on GFX10. Only GFX10 was affected because intensity formats are different. Cc: 19.2 <[email protected]> Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1923 Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
* gbm: use size_t for array indexesEric Engestrom2019-10-131-10/+5
| | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
* gbm: replace NULL sentinel with explicit ARRAY_SIZE()Eric Engestrom2019-10-131-9/+12
| | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
* gbm: replace 1/0 bool with true/falseEric Engestrom2019-10-131-8/+8
| | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
* gbm: turn 0/-1 bool into true/falseEric Engestrom2019-10-131-6/+7
| | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
* radv: add exported symbols checkEric Engestrom2019-10-131-0/+13
| | | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Dylan Baker <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
* anv: add exported symbols checkEric Engestrom2019-10-131-0/+13
| | | | | | | Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Dylan Baker <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
* panfrost: Fix support for packed 24-bit formatsBoris Brezillon2019-10-131-1/+1
| | | | | | | | | pan_pack_color() color was missing the 24-bit packed format case. Looks like putting the clear color in a 32-bit slot does the trick. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]>
* glsl: fix crash compiling bindless samplers inside unnamed UBOsTimothy Arceri2019-10-121-5/+5
| | | | | | | | | | The check to see if we were dealing with a buffer block was too late and only worked for named UBOs. Fixes: f32b01ca435c "glsl/linker: remove ubo explicit binding handling" Reviewed-by: Marek Olšák <[email protected]> Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1900
* glsl/builtin: Add alternate versions of atan using new opsNeil Roberts2019-10-121-2/+31
| | | | | | | | | | Adds alternate versions of the atan builtin functions that use ir_unop_atan and ir_binop_atan2 instead of inlining to the IR implementation of the function. These alternatives are selected if the IR is going to be consumed by NIR. In that case the IR ops will be translated to the appropriate NIR op. Reviewed-by: Kristian H. Kristensen <[email protected]>
* glsl: Add opcodes for atan and atan2Neil Roberts2019-10-126-0/+31
| | | | | | | | Adds ir_binop_atan2 and ir_unop_atan. When converting to NIR these are expanded out using the appropriate builtin generator. If they are used with anything else then it will just hit an assert. Reviewed-by: Kristian H. Kristensen <[email protected]>
* nir/builtin: Add extern "C" guards to nir_builtin_builder.hNeil Roberts2019-10-121-0/+8
| | | | | | That way it can also be included from a C++ source. Reviewed-by: Kristian H. Kristensen <[email protected]>
* nir/builtin: Add #include u_math.h to the headerNeil Roberts2019-10-121-0/+1
| | | | | | | The inline functions use M_PI so they should include a header to make sure it is defined. Reviewed-by: Kristian H. Kristensen <[email protected]>