summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* nir/large_constants: use nir_index_vars and nir_variable::indexRhys Perry2019-11-201-12/+8
| | | | | Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Connor Abbott <[email protected]>
* nir: add nir_variable::index and nir_index_varsRhys Perry2019-11-202-0/+41
| | | | | | | | | This will be useful as a deterministic identifier/index for the variable. v2: fix comment style Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Connor Abbott <[email protected]> (v1)
* nir: make nir_variable::{num_members,num_state_slots} a uint16_tRhys Perry2019-11-201-2/+2
| | | | | | | Doesn't shrink it (at least, on x86-64) and leaves space for more members. Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Connor Abbott <[email protected]>
* docs: add missing new features for RADVSamuel Pitoiset2019-11-201-0/+3
| | | | | | | [skip ci] Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
* freedreno/ir3: enable half precision for pre-fs texture fetchHyunjun Ko2019-11-201-1/+1
| | | | Reviewed-by: Rob Clark <[email protected]>
* freedreno/ir3: fixup when changing to mad.f16Hyunjun Ko2019-11-201-1/+5
| | | | Reviewed-by: Rob Clark <[email protected]>
* freedreno/ir3: fix printing output registers of FS.Hyunjun Ko2019-11-201-2/+3
| | | | | | Fixes: cea39af2fbf1 ("freedreno/ir3: Generalize ir3_shader_disasm()") Reviewed-by: Rob Clark <[email protected]>
* freedreno/ir3: Enabling lowering 16-bit flrpNeil Roberts2019-11-201-0/+2
| | | | Reviewed-by: Rob Clark <[email protected]>
* freedreno: support 16b for the sampler opcodeHyunjun Ko2019-11-202-18/+38
| | | | Reviewed-by: Rob Clark <[email protected]>
* freedreno/ir3: Implement f2b16 and i2b16Neil Roberts2019-11-201-0/+12
| | | | Reviewed-by: Rob Clark <[email protected]>
* freedreno/ir3: Add implementation of nir_op_b16cselNeil Roberts2019-11-201-5/+15
| | | | Reviewed-by: Rob Clark <[email protected]>
* freedreno/ir3: Support 16-bit comparison instructionsNeil Roberts2019-11-201-0/+20
| | | | | | | | | | v2. [Hyunjun Ko ([email protected])] Avoid using too much open code like "instr->regs[n]->flags |= FOO" v3. [Hyunjun Ko ([email protected])] Remove redundant code for both 16b and 32b operations. Reviewed-by: Rob Clark <[email protected]>
* freedreno/ir3: cleanup by removing repeated codeHyunjun Ko2019-11-201-12/+5
| | | | | | Prep-work for the corresponding patch. Reviewed-by: Rob Clark <[email protected]>
* nir/lower_alu_to_scalar: Support lowering 8- and 16-bit reduce opsNeil Roberts2019-11-201-0/+8
| | | | | Reviewed-by: Rob Clark <[email protected]> Acked-by: Alyssa Rosenzweig <[email protected]>
* nir: Add a 8-bit bool typeNeil Roberts2019-11-202-2/+12
| | | | | | | | Adds nir_type_bool8 as well as 8-bit versions of all the bool opcodes. Reviewed-by: Rob Clark <[email protected]> Acked-by: Alyssa Rosenzweig <[email protected]>
* nir: Add a 16-bit bool typeNeil Roberts2019-11-202-1/+11
| | | | | | | | Adds nir_type_bool16 as well as 16-bit versions of all the bool opcodes. Reviewed-by: Rob Clark <[email protected]> Acked-by: Alyssa Rosenzweig <[email protected]>
* nir/opcodes: Add a helper function to generate reduce opcodesNeil Roberts2019-11-201-17/+15
| | | | | | | | | Adds binop_reduce_all_sizes which generates both 1-bit and 32-bit versions of the reduce operation. This reduces the code duplication a bit and will make it easier to later add 16-bit versions as well. Reviewed-by: Rob Clark <[email protected]> Acked-by: Alyssa Rosenzweig <[email protected]>
* nir/opcodes: Add a helper function to generate the comparison binopsNeil Roberts2019-11-201-20/+14
| | | | | | | | | | Adds binop_compare_all_sizes which generates both 1-bit and 32-bit versions of the comparison operation. This reduces the code duplication a bit and will make it easier to later add 16-bit versions as well. Reviewed-by: Rob Clark <[email protected]> Acked-by: Alyssa Rosenzweig <[email protected]>
* radv: enable VK_KHR_shader_subgroup_extended_types on GFX6-GFX7Samuel Pitoiset2019-11-201-1/+1
| | | | | | | | Most of DEQP-VK.subgroups are skipped because 16-bit float aren't supported but others pass. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
* v3d: adds an extra MOV for any sig.ld*Alejandro Piñeiro2019-11-201-4/+19
| | | | | | | | | | | | | | | | | | | | | | | | Specifically when we are in non-uniform control flow, as we would need to set the condition for the last instruction. If (for example) a image atomic load stores directly their value on a NIR register, last_inst would be a nop, and would fail when set the condition. Fixes piglit test: spec/glsl-es-3.10/execution/cs-ssbo-atomic-if-else-2.shader_test Fixes: 6281f26f064ada ("v3d: Add support for shader_image_load_store.") v2: (Changes suggested by Eric Anholt) * Cover all sig.ld* signals, not just ldunif and ldtmu, as all of them have the same restriction. * Update comment explaining why we add a MOV in that case * Tweak commit message. v3: * Drop extra set of parens (Eric) * Add missing ld signal to is_ld_signal to fix shader-db regression. Reviewed-by: Eric Anholt <[email protected]>
* v3d: Fix predication with atomic image operationsJose Maria Casanova Crespo2019-11-201-0/+12
| | | | | | | | | | | | | Fixes dEQP test: dEQP-GLES31.functional.synchronization.inter_call.with_memory_barrier.image_atomic_multiple_interleaved_write_read Fixes piglit test: spec/glsl-es-3.10/execution/cs-image-atomic-if-else.shader_test Fixes: 6281f26f064ada ("v3d: Add support for shader_image_load_store.") Reviewed-by: Alejandro Piñeiro <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
* panfrost: Don't print the midgard_blend_rt structs on SFBDTomeu Vizoso2019-11-201-1/+1
| | | | | Signed-off-by: Tomeu Vizoso <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]>
* gitlab-ci: Fix dir name for VK-GL-CTS sourcesTomeu Vizoso2019-11-201-1/+1
| | | | | Signed-off-by: Tomeu Vizoso <[email protected]> Acked-by: Alyssa Rosenzweig <[email protected]>
* panfrost: Rework buffers in SFBDTomeu Vizoso2019-11-201-40/+39
| | | | | | | | Support cases such as depth-only renders and only set stencil buffers when needed, to match the blob's behaviour. Signed-off-by: Tomeu Vizoso <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]>
* panfrost: Just print tiler fields as-is for Tx20Tomeu Vizoso2019-11-201-6/+48
| | | | | | | | The tiler unit in these GPUs is quite different and we haven't reverse engineered enough of it yet to validate and pretty print it. Signed-off-by: Tomeu Vizoso <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]>
* pan/midgard: Introduce quirks checksAlyssa Rosenzweig2019-11-205-10/+92
| | | | | | | | | | | | | Rather than open-coding checks on gpu_id in the compiler, let's track quirks applying to whatever we're compiling for, to allow us to manage the complexity of many heterogenous GPUs in the compiler. It was discovered that a workaround used on T720 is also required on T820 (and presumably T830), so let's fix this. This will also decrease friction as we continue improving T720 support. Signed-off-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Tomeu Vizoso <[email protected]>
* gitlab-ci: update for arb_shading_language_includeTimothy Arceri2019-11-202-15/+5
|
* gitlab-ci: bump piglit checkout commitTimothy Arceri2019-11-202-2/+2
|
* mesa: enable ARB_shading_language_includeTimothy Arceri2019-11-202-2/+2
| | | | | | Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/999 Reviewed-by: Witold Baryluk <[email protected]>
* mesa: implement glCompileShaderIncludeARB()Timothy Arceri2019-11-201-3/+63
| | | | Reviewed-by: Witold Baryluk <[email protected]>
* mesa: add shader include lookup support for relative pathsTimothy Arceri2019-11-201-10/+75
| | | | Reviewed-by: Witold Baryluk <[email protected]>
* mesa: add support cursor support for relative path shader includesTimothy Arceri2019-11-205-1/+55
| | | | | | | | | | | | | This will allow us to continue searching the current path for relative shader includes. From the ARB_shading_language_include spec: "If it is quoted with double quotes in a previously included string, then the first search point will be the tree location where the previously included string had been found." Reviewed-by: Witold Baryluk <[email protected]>
* glsl: delay compilation skip if shader contains an includeTimothy Arceri2019-11-201-6/+40
| | | | | | | | If the shader contains an include when need to first run the preprocessor before deciding if we can skip compilation based on the shader cache. Reviewed-by: Witold Baryluk <[email protected]>
* glsl: add can_skip_compile() helperTimothy Arceri2019-11-201-10/+20
| | | | | | We will reuse this in the following commit. Reviewed-by: Witold Baryluk <[email protected]>
* glsl: error if #include used while extension is disabledTimothy Arceri2019-11-202-0/+15
| | | | | | In other words make sure the shader does this: Reviewed-by: Witold Baryluk <[email protected]>
* glsl: add preprocessor #include supportTimothy Arceri2019-11-207-4/+194
| | | | Reviewed-by: Witold Baryluk <[email protected]>
* glsl: pass gl_context to glcpp_parser_create()Timothy Arceri2019-11-203-7/+7
| | | | | | This is a small tidy up and will be useful in the following commit. Reviewed-by: Witold Baryluk <[email protected]>
* glsl: add ARB_shading_language_include support to #lineTimothy Arceri2019-11-207-8/+80
| | | | | | | | | | | | | | | | | | | | | | From the ARB_shading_language_include spec: "#line must have, after macro substitution, one of the following forms: #line <line> #line <line> <source-string-number> #line <line> "<path>" where <line> and <source-string-number> are constant integer expressions and <path> is a valid string for a path supplied in the #include directive. After processing this directive (including its new-line), the implementation will behave as if it is compiling at line number <line> and source string number <source-string-number> or <path> path. Subsequent source strings will be numbered sequentially, until another #line directive overrides that numbering." Reviewed-by: Witold Baryluk <[email protected]>
* mesa: implement glDeleteNamedStringARB()Timothy Arceri2019-11-201-0/+25
| | | | | Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Witold Baryluk <[email protected]>
* mesa: split _mesa_lookup_shader_include() in twoTimothy Arceri2019-11-201-4/+14
| | | | | | | | The new local function lookup_shader_include() will be used by glDeleteNamedStringARB() in the following patch. Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Witold Baryluk <[email protected]>
* mesa: implement glGetNamedStringivARB()Timothy Arceri2019-11-201-0/+28
| | | | | Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Witold Baryluk <[email protected]>
* mesa: implement glIsNamedStringARB()Timothy Arceri2019-11-201-1/+14
| | | | | Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Witold Baryluk <[email protected]>
* mesa: make error checking optional in _mesa_lookup_shader_include()Timothy Arceri2019-11-202-10/+19
| | | | | | | | | This will be usefull when implementing glIsNamedStringARB() which doesn't do error checking, it just returns false for invalid lookups instead. Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Witold Baryluk <[email protected]>
* mesa: implement glGetNamedStringARB()Timothy Arceri2019-11-201-0/+22
| | | | | Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Witold Baryluk <[email protected]>
* mesa: add glNamedStringARB() supportTimothy Arceri2019-11-201-0/+59
| | | | | Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Witold Baryluk <[email protected]>
* mesa: add copy_string() helperTimothy Arceri2019-11-201-0/+20
| | | | | | | | This will be used by the various ARB_shading_language_include functions in the following patches. Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Witold Baryluk <[email protected]>
* mesa: add _mesa_lookup_shader_include() helperTimothy Arceri2019-11-202-0/+37
| | | | | | | This will be used both by the glsl compiler and the GL API. Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Witold Baryluk <[email protected]>
* mesa: add helper to validate tokenise shader include pathTimothy Arceri2019-11-201-0/+82
| | | | | Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Witold Baryluk <[email protected]>
* mesa: add ARB_shading_language_include infrastructure to gl_shared_stateTimothy Arceri2019-11-204-0/+77
| | | | | Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Witold Baryluk <[email protected]>
* glsl: add infrastructure for ARB_shading_language_includeTimothy Arceri2019-11-203-0/+4
| | | | | Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Reviewed-by: Witold Baryluk <[email protected]>