summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* radeonsi/gfx9: load GS inputs from LDSMarek Olšák2017-04-281-6/+39
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi/gfx9: get GS wave ID from the correct inputMarek Olšák2017-04-281-3/+11
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi/gfx9: add the function signature of merged ES-GSMarek Olšák2017-04-282-12/+74
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi/gfx9: set registers and shader key for merged ES-GSMarek Olšák2017-04-285-27/+218
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi/gfx9: add GS user SGPRsMarek Olšák2017-04-284-7/+25
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi: rename declare_tess_lds -> declare_lds_as_pointerMarek Olšák2017-04-281-4/+4
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi: simplify some shader type conditionsMarek Olšák2017-04-281-6/+2
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi: rename the swizzle parameter of lds_storeMarek Olšák2017-04-281-2/+2
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi: add si_shader::prolog2Marek Olšák2017-04-283-1/+25
| | | | | | For a GS prolog in merged ES-GS. Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi/gfx9: move RW_BUFFERS to s[0:1] for merged shadersMarek Olšák2017-04-283-21/+24
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi/gfx9: add support for monolithic merged LS-HSMarek Olšák2017-04-282-17/+128
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi/gfx9: set EXEC for non-mono merged shaders, add a barrier between themMarek Olšák2017-04-281-2/+41
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi/gfx9: don't store the HS control wordMarek Olšák2017-04-281-7/+12
| | | | | | GFX9 doesn't have it. Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi/gfx9: pass inputs from LS to TCSMarek Olšák2017-04-282-2/+69
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi/gfx9: add TCS epilog support for merged LS-HSMarek Olšák2017-04-281-34/+76
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi/gfx9: add VS prolog support for merged LS-HSMarek Olšák2017-04-282-10/+21
| | | | | | HS input VGPRs must be reserved. Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi/gfx9: merged shaders have scratch offset at the beginningMarek Olšák2017-04-282-1/+13
| | | | | | also, screen wasn't initialized for compute shaders Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi/gfx9: define LS-HS main shader function prototypeMarek Olšák2017-04-281-38/+147
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi: assign VS/TCS/TES/GS shader input parameter locations dynamicallyMarek Olšák2017-04-283-193/+190
| | | | | | They will vary with merged stages. Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi/gfx9: define and set LS-HS user SGPRsMarek Olšák2017-04-285-20/+57
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi/gfx9: set up shader registers for merged LS-HSMarek Olšák2017-04-283-15/+55
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi/gfx9: add initial code generation for non-monolithic merged LS-HSMarek Olšák2017-04-283-1/+23
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi: separate out code for selecting the VS prologMarek Olšák2017-04-281-17/+29
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi/gfx9: add si_shader::previous_stage for merged shadersMarek Olšák2017-04-283-1/+39
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi/gfx9: enlarge num_input_sgprs in shader keys due to higher hw limitMarek Olšák2017-04-281-2/+2
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi/gfx9: update the summary of shader stage configsMarek Olšák2017-04-281-4/+9
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi: adjust the signature of si_get_vs_prolog_keyMarek Olšák2017-04-281-9/+21
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi: separate out VS prolog key generationMarek Olšák2017-04-281-11/+20
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi: separate out VS prolog key printingMarek Olšák2017-04-281-19/+29
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi: code shuffling in si_emit_derived_tess_stateMarek Olšák2017-04-281-31/+38
| | | | Reviewed-by: Nicolai Hähnle <[email protected]>
* radeonsi: separate out TGSI initialization of si_shader_contextMarek Olšák2017-04-283-43/+72
| | | | | | so that we can put multiple different TGSI shaders into one module. Reviewed-by: Nicolai Hähnle <[email protected]>
* st/mesa: use min_index and max_index directly from vboMarek Olšák2017-04-281-7/+2
| | | | | | also remove the incorrect comment about primitive restart. Reviewed-by: Nicolai Hähnle <[email protected]>
* vbo: set min_index = 0 so gallium can use the value directlyMarek Olšák2017-04-282-4/+4
| | | | | | | We could also remove index_bounds_valid and use max_index != ~0 instead. Opinions on that are welcome. Reviewed-by: Nicolai Hähnle <[email protected]>
* Revert "glsl: reject image qualifiers with non-image types inside uniform ↵Matt Turner2017-04-281-2/+0
| | | | | | | | | | | | | | | | | | blocks" This reverts commit 24011ead71ea9980e6b34e40d9dbd64e6560f5a4. This causes lots of ES 3.1 CTS tests to fail to compile a bit of code like: layout(binding = 0) buffer InOut { highp uint inputValues[384]; highp uint outputValues[384]; coherent highp uint groupValues[64]; <----- } sb_inout; error: memory qualifiers may only be applied to images
* st/mesa: add more fallback gallium formats for GL integer formatsBrian Paul2017-04-281-25/+25
| | | | | | | | | | | | | | | The VMware driver has a limited set of integer texture formats. We often have to fall back to 4-component formats when 1- or 2-component formats are missing. This fixes about 8 integer texture Piglit tests with the VMware driver on Linux. We've had this code in-house for a long time but I guess it was never up-streamed to Mesa master. This shouldn't regress any other drivers since we're either choosing an earlier format in the list, or failing anyway. Reviewed-by: Marek Olšák <[email protected]>
* mesa: optimize color_buffer_writes_enabled()Brian Paul2017-04-281-4/+5
| | | | | | | | | | Return as soon as we find an existing color channel that's enabled for writing. Typically, this allows us to return true on the first loop iteration intead of doing four iterations. No piglit regressions. Reviewed-by: Marek Olšák <[email protected]>
* st/mesa: whitespace clean-ups in st_manager.cBrian Paul2017-04-281-7/+8
| | | | Trivial.
* Revert "glsl: set vector_elements to 1 for samplers"Matt Turner2017-04-282-6/+16
| | | | | | This reverts commit 75a31a20af269c047661af33e28f793269537b79. This breaks thousands of tests on i965 with malloc corruption.
* anv: Drop 'x11' prefix from non-X11 WSI funcsChad Versace2017-04-281-16/+16
| | | | | | | Drop it from x11_anv_wsi_image_create and x11_anv_wsi_image_free. The functions are used by Wayland WSI too. Reviewed-by: Jason Ekstrand <[email protected]>
* anv: Alphabetize KHR extensionsJason Ekstrand2017-04-281-18/+18
| | | | Reviewed-by: Alejandro Piñeiro <[email protected]>
* ac: automake: sort sources list alphabeticallyEmil Velikov2017-04-281-3/+3
| | | | Signed-off-by: Emil Velikov <[email protected]>
* ac: include all sources in the tarballEmil Velikov2017-04-281-0/+1
| | | | | Fixes: e2659176cef ("radeonsi/ac: move vertex export remove to common code.") Signed-off-by: Emil Velikov <[email protected]>
* st/mesa: remove redundant stfb->iface checksNicolai Hähnle2017-04-282-9/+2
| | | | | | | | | | stfb->iface is always non-NULL for an st_framebuffer. These checks were incorrect, relying on out-of-bounds memory access in the surface-less case of EGL_KHR_surfaceless_context. v2: remove redundant stread check (Marek) Reviewed-by: Marek Olšák <marek@[email protected]> (v2)
* st/mesa: don't cast the incomplete framebufer to st_framebufferNicolai Hähnle2017-04-282-2/+4
| | | | | | | | | | | | | | | | | | | The incomplete framebuffer is set for a surfaceless context. This leads to the following error in piglit spec@egl_khr_surfaceless_context@viewport: ==26703==ERROR: AddressSanitizer: global-buffer-overflow on address 0x7f6886e43240 at pc 0x7f68854db0fd bp 0x7ffca404b3b0 sp 0x7ffca404b3a0 READ of size 8 at 0x7f6886e43240 thread T0 #0 0x7f68854db0fc in st_viewport ../../../mesa-src/src/mesa/state_tracker/st_cb_viewport.c:57 #1 0x556840176cdb in main tests/egl/spec/egl_khr_surfaceless_context/viewport.c:101 #2 0x7f688edcf3f0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x203f0) #3 0x556840176e19 in _start (/home/nha/amd/piglit/bin/egl-surfaceless-context-viewport+0xe19) 0x7f6886e43240 is located 32 bytes to the left of global variable 'DummyRenderbuffer' defined in '../../../mesa-src/src/mesa/main/fbobject.c:69:31' (0x7f6886e43260) of size 112 0x7f6886e43240 is located 8 bytes to the right of global variable 'IncompleteFramebuffer' defined in '../../../mesa-src/src/mesa/main/fbobject.c:73:30' (0x7f6886e42de0) of size 1112 SUMMARY: AddressSanitizer: global-buffer-overflow ../../../mesa-src/src/mesa/state_tracker/st_cb_viewport.c:57 in st_viewport Cc: [email protected] Reviewed-by: Marek Olšák <marek@[email protected]>
* st/glsl_to_tgsi: make undef_src and undef_dst constNicolai Hähnle2017-04-281-2/+2
|
* st/glsl_to_tgsi: cleanup using visit_generic_intrinsicNicolai Hähnle2017-04-281-8/+2
| | | | | It turns out that explicitly setting the writemask isn't actually needed; emit_asm does the right thing based on looking at the types.
* glsl: remove the shader_group_vote and shader_ballot expression opsNicolai Hähnle2017-04-285-77/+0
| | | | They are now no longer used.
* glsl: implement arb_shader_ballot builtins using intrinsicsNicolai Hähnle2017-04-281-3/+83
|
* glsl: implement arb_shader_group_vote builtins via intrinsicsNicolai Hähnle2017-04-281-6/+32
| | | | | Reviewed-by: Timothy Arceri <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
* st/glsl_to_tgsi: implement shader_group_vote and shader_ballot intrinsicsNicolai Hähnle2017-04-281-0/+36
| | | | | Reviewed-by: Timothy Arceri <[email protected]> Reviewed-by: Marek Olšák <[email protected]>