aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
Commit message (Collapse)AuthorAgeFilesLines
...
* panfrost: Emit attribute descriptors after patching the templatesBoris Brezillon2020-03-101-9/+6
| | | | | | | | | Patching attribute desc when they are in cacheable memory should be more efficient. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4083>
* panfrost: Prepare attribute for builtins at state creation timeBoris Brezillon2020-03-103-18/+9
| | | | | | | | | | The attribute meta slots reserved for gl_VertexID and gl_InstanceID can be pre-filled at state creation time. Only the index needs to be adjusted when attributes are generated. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4083>
* panfrost: Ignore BO start addr when adjusting src_offsetBoris Brezillon2020-03-101-3/+3
| | | | | | | | | BOs are guaranteed to be aligned on 4K which inherently guarantees the 64 byte alignment. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4083>
* panfrost: Drop initial mali_attr_meta.src_offset assignmentBoris Brezillon2020-03-101-4/+1
| | | | | | | | | | | | The mali_attr_meta.src_offset is initialized to pipe_vertex_element.src_offset at vertex element creation time, but this field is then adjusted when the descrptors are emitted. Let's use the pipe_vertex_element data we saved earlier and drop this initial assignment. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4083>
* panfrost: Add an helper to emit a pair of vertex/tiler jobsBoris Brezillon2020-03-103-21/+41
| | | | | | | | | Add the panfrost_emit_vertex_tiler_jobs() helper and use it in panfrost_queue_draw(). Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4083>
* panfrost: Move sampler/tex descs emission helpers to pan_cmdstream.cBoris Brezillon2020-03-103-80/+82
| | | | | | | | | | | | Move panfrost_upload_texture_descriptors() and panfrost_upload_sampler_descriptors() to pan_cmdstream.c where other cmdstream related helpers live. While at it, change their prototype and name to make it consistent with the other helpers and prepare things for ctx->payloads[] removal. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4083>
* panfrost: Add a panfrost_sampler_desc_init() helperBoris Brezillon2020-03-103-86/+78
| | | | | | | | | | It just makes sense to group all HW descriptor initilization logic in pan_cmdstream.c, so let's move this code out of panfrost_create_sampler_state(). Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4083>
* panfrost: Prepare shader_meta descriptors at emission timeBoris Brezillon2020-03-107-390/+388
| | | | | | | | | | | | | | | | | This way we avoid potential state leaks and keep the shader_meta initialization in once place. The time spent preparing the shader descriptors should be negligible compared to the time spent pushing those descriptors to the transient buffer (remember we are writing to non-cacheable memory here). Note that we might get back to some sort of shader_meta descriptor caching at some point if that proves necessary, but now we have those panfrost_frag_meta_xxx_update() helpers now where xxx maps directly to a CSO bind, which should ease desc template updates. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4083>
* panfrost: Prepare things to get rid of panfrost_shader_state.tripipeBoris Brezillon2020-03-103-21/+33
| | | | | | | | | | | | | | | | panfrost_shader_state.tripipe is used as a template for shader_meta desc emission, but shader_meta desc preparation time should be negligible compared to desc emission time (remember we are writing to non-cacheable memory here). Let's prepare for generating the the shader_meta desc entirely at draw time by adding the necessary fields to panfrost_shader_state. Note that we might brink back some sort of shader_meta desc caching at some point, but let's simplify things a bit for now. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4083>
* panfrost: Add an helper to update the rasterizer part of a tiler job descBoris Brezillon2020-03-104-31/+34
| | | | | | | | | | | | | | | | That's part of our attempt to make panfrost_emit_for_draw() a bit more dry and eventually get rid of it by inlining the code in panfrost_draw_vbo(). This is just one step in this direction. Note that we get rid of the panfrost_rasterizer.tiler_gl_enables field along the way, as setting/clearing those bits at draw time instead of doing when the state is created should make a huge difference. We might get back to pre-computed VT descs at some point, but let's keep things simple for now. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4083>
* panfrost: Add an helper to update the occclusion query part of a tiler job descBoris Brezillon2020-03-103-4/+16
| | | | | | | | | | That's part of our attempt to make panfrost_emit_for_draw() a bit more dry and eventually get rid of it by inlining the code in panfrost_draw_vbo(). This is just one step in this direction. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4083>
* panfrost: Simplify panfrost_emit_for_draw() and make it privateBoris Brezillon2020-03-102-18/+9
| | | | | | | | | | Now that panfrost_launch_grid() no longer calls panfrost_emit_for_draw(), we can keep it private to pan_context.c and drop all compute-related stuff. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4083>
* panfrost: Stop using panfrost_emit_for_draw() for compute jobsBoris Brezillon2020-03-103-2/+8
| | | | | | | | | | | | We actually need a small subset of what's done in panfrost_emit_for_draw() when emitting compute jobs, so let's copy what we need directly in panfrost_launch_grid() instead of re-using this function whose initial purpose was to generate vertex/tiler jobs for draw operations. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4083>
* panfrost: Move panfrost_attach_vt_framebuffer() to pan_cmdstream.cBoris Brezillon2020-03-103-28/+38
| | | | | | | | | | | | | Move panfrost_attach_vt_framebuffer() to pan_cmdstream.c and change its name to panfrost_vt_attach_framebuffer() so we can use a consistent prefix (panfrost_vt_) for all helpers initializing/updating midgard_payload_vertex_tiler fields. Note that the function only initializes one VT object now. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4083>
* panfrost: Dissociate shader meta patching from the desc emissionBoris Brezillon2020-03-103-15/+33
| | | | | | | | | | | | | | | Right now we emit two shader descriptors for the fragment shader, one when panfrost_patch_shader_state() is called, and the final one including both the shader_meta and the blend RT descriptors. The first generated fragment shader descriptor is never used, since the second one overrides the postfix.shader pointer. Let's dissociate the state patching logic from the descriptor emission so we don't upload descriptors that are never used. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4083>
* panfrost: Move shared mem desc emission out of panfrost_launch_grid()Boris Brezillon2020-03-103-18/+38
| | | | | | | | | Let's move the shared memory descriptor emission to a dedicated function living with its pairs in pan_cmdstream.c. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4083>
* panfrost: Move the const buf emission logic out of panfrost_emit_for_draw()Boris Brezillon2020-03-104-258/+293
| | | | | | | | | Let's move the constant buffer emission logic in a dedicated helper to make panfrost_emit_for_draw() a bit more dry. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4083>
* panfrost: Move viewport desc emission out of panfrost_emit_for_draw()Boris Brezillon2020-03-104-96/+183
| | | | | | | | | | | | | Let's move the viewport descriptor emission logic to a dedicated helper in order to shrink a bit the panfrost_emit_for_draw(). Note that this helper is placed in a new pan_cmdstream.c file where we will group all cmdstream related helpers (everything that's related to HW descriptor initialization emission). Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4083>
* panfrost: Move the batch stack size adjustment out of panfrost_queue_draw()Boris Brezillon2020-03-103-8/+20
| | | | | | | | | | | That's part of our attempt to sanitize panfrost_queue_draw(), panfrost_draw_vbo() and panfrost_emit_for_draw(). The new panfrost_batch_adjust_stack_size() helper is placed in pan_job.c, where all batch related functions live. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4083>
* panfrost: Add an helper to retrieve the currently active shader stateBoris Brezillon2020-03-103-13/+21
| | | | | | | | Doing that improves readability and helps avoiding code duplication. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4083>
* panfrost: Assign primitive_size.pointer only if writes_point_size() returns trueBoris Brezillon2020-03-103-2/+5
| | | | | | | | | | | | Checking vs->writes_point_size is not enough, as we might have a vertex shader writing point size, but a primitive that's not MALI_POINT. That currently works because emit_varying_descriptor() is called before the primitive_size.constant field is update, but let's make the logic more robust, just in case things are re-ordered at some point. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4083>
* panfrost: Pass the sampler view format when creating a tex descriptorBoris Brezillon2020-03-101-1/+1
| | | | | | | | | | | A sampler can use a different format than the native texture format. Let's pass the sampler format instead of the native texture format when creating a texture descriptor. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4101> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4101>
* gallium: Add forgotten docs for new CAPs related to transform feedbackTomeu Vizoso2020-03-101-0/+3
| | | | | | | | | | These three caps were missing docs. Signed-off-by: Tomeu Vizoso <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4115> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4115>
* lima: enable minmax cache for index buffersVasily Khoruzhick2020-03-103-3/+34
| | | | | | | | | Re-use minmax cache for index buffers from panfrost. Reviewed-by: Andreas Baierl <[email protected]> Signed-off-by: Vasily Khoruzhick <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4051> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4051>
* panfrost: split index cache into shared partVasily Khoruzhick2020-03-103-90/+9
| | | | | | | | | Split it into shared part since we're going to re-use it in lima. Reviewed-by: Alyssa Rosenzweig <[email protected]> Reviewed-by: Boris Brezillon <[email protected]> Signed-off-by: Vasily Khoruzhick <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4051>
* st/nine: Fix incompatible-pointer-types-discards-qualifiers errors.Vinson Lee2020-03-091-2/+2
| | | | | | | | | | | | | | | ../src/gallium/state_trackers/nine/nine_ff.c:129:28: error: initializing 'struct nine_ff_vs_key *' with an expression of type 'const void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] struct nine_ff_vs_key *vs = key; ^ ~~~ ../src/gallium/state_trackers/nine/nine_ff.c:145:28: error: initializing 'struct nine_ff_ps_key *' with an expression of type 'const void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] struct nine_ff_ps_key *ps = key; ^ ~~~ Fixes: fdd96578ef2d ("nine: Add state tracker nine for Direct3D9 (v3)") Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Andre Heider <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4015> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4015>
* radeonsi: determine uses_bindless_samplers correctlyMarek Olšák2020-03-091-5/+6
| | | | | | Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4079> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4079>
* radeonsi: add a bug workaround for NGG - LATE_ALLOC_GSMarek Olšák2020-03-091-0/+6
| | | | | | Cc: 19.3 20.0 <[email protected]> Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4079>
* radeonsi: enable EXT_texture_shadow_lodSonny Jiang2020-03-091-0/+1
| | | | | | | Signed-off-by: Sonny Jiang <[email protected]> Signed-off-by: Marek Olšák <[email protected]> Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4079>
* amd: join emit_kill() from radv and radeonsi in ac_nir_to_llvmDaniel Schürmann2020-03-091-9/+0
| | | | | | Reviewed-by: Marek Olšák <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4047> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4047>
* radeonsi: lower discard to demote when FS_CORRECT_DERIVS_AFTER_KILL is enabledDaniel Schürmann2020-03-095-26/+7
| | | | | Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4047>
* gallium/swr: Fix vcvtph2ps llvm intrinsic compile errorKrzysztof Raszkowski2020-03-093-34/+4
| | | | | | Reviewed-by: Jan Zielinski <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4090> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4090>
* omx: fix build with gcc 10Pierre-Eric Pelloux-Prayer2020-03-091-1/+1
| | | | | | | | | | | | | | bellagio/omx header files reference a global variable without the extern keyworkd. Now that gcc-10 enables the '-fno-common' by default the build fails. Since these are external headers we can't easily fix them, so for now build the omx module with the '-fcommon' flag to keep the previous behavior. See https://gitlab.freedesktop.org/mesa/mesa/issues/2385 Reviewed-by: Michel Dänzer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4058>
* etnaviv: implement emit_string_markerChristian Gmeiner2020-03-082-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Writes string to cmdstream in payload of a nop command. Could be useful for internal driver debugging too. Here is how it looks decoded: 0x18000000, /* NOP (3) OP=NOP */ 0x65736572, /* rese */ 0x18000000, /* NOP (3) OP=NOP */ 0x00000074, /* t */ 0x00000000, /* GL.API_MODE := OPENGL */ or 0x00000705, /* GL.STALL_TOKEN := FROM=RA,TO=PE,FLIP0=0,FLIP1=0 */ 0x00000001, /* TS.FLUSH_CACHE := FLUSH=1 */ 0x18000000, /* NOP (3) OP=NOP */ 0x616e7465, /* etna */ 0x18000000, /* NOP (3) OP=NOP */ 0x6275735f, /* _sub */ 0x18000000, /* NOP (3) OP=NOP */ 0x5f74696d, /* mit_ */ 0x18000000, /* NOP (3) OP=NOP */ 0x735f7372, /* rs_s */ 0x18000000, /* NOP (3) OP=NOP */ 0x65746174, /* tate */ 0x00004606, /* RS.CONFIG := SOURCE_FORMAT=A8R8G8B8 Signed-off-by: Christian Gmeiner <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3744> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3744>
* etnaviv: increase number of supported varyings to 16Christian Gmeiner2020-03-084-7/+10
| | | | | | | | | No deqp regressions. Signed-off-by: Christian Gmeiner <[email protected]> Reviewed-by: Jonathan Marek <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3827> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3827>
* etnaviv: update headers from rnndbChristian Gmeiner2020-03-083-7/+7
| | | | | | | | Update to etna_viv commit fd2e2cfd. Signed-off-by: Christian Gmeiner <[email protected]> Reviewed-by: Jonathan Marek <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3827>
* etnaviv: ask kernel for max number of supported varyingsChristian Gmeiner2020-03-081-8/+6
| | | | | | | | | The inital etnaviv kernel driver in 4.5 has support for this param. See kernel commit 602eb48966d7b7f7e64dca8d9ea2842d83bfae73 Signed-off-by: Christian Gmeiner <[email protected]> Reviewed-by: Jonathan Marek <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3827>
* lima: gpir: enforce instruction limit earlierVasily Khoruzhick2020-03-062-9/+8
| | | | | | | | | | | Enforce instruction limit of 512 instructions earlier. This is a workaround for infinite loops in gpir compiler and allows us to pin point the tests that are affected. Reviewed-by: Andreas Baierl <[email protected]> Signed-off-by: Vasily Khoruzhick <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4055> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4055>
* etnaviv: add etna_constbuf_state objectChristian Gmeiner2020-03-064-12/+22
| | | | | | | | | | With this new state object we keep track of enabled pipe_constant_buffer and only mark them as read when needed. Signed-off-by: Christian Gmeiner <[email protected]> Reviewed-by: Jonathan Marek <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4088> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4088>
* st/va: add check for P010 and P016 encode/decode supportThong Thai2020-03-061-4/+16
| | | | | | | Signed-off-by: Thong Thai <[email protected]> Reviewed-by: Leo Liu <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4033> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4033>
* radeon: add support for 10-bit HEVC encoding to VCN 2.0Thong Thai2020-03-062-14/+85
| | | | | | Signed-off-by: Thong Thai <[email protected]> Acked-by: Leo Liu <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4033>
* radeonsi: add 10-bit HEVC encode support for VCN2.0 devicesThong Thai2020-03-061-6/+9
| | | | | | Signed-off-by: Thong Thai <[email protected]> Reviewed-by: Leo Liu <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4033>
* radeonsi: remove AMD_DEBUG=sisched optionPierre-Eric Pelloux-Prayer2020-03-063-7/+1
| | | | | | | | | sisched is not maintained anymore in LLVM. Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4059> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4059>
* iris: Don't skip fast depth clears if the color changedJason Ekstrand2020-03-061-1/+5
| | | | | | | | | | | | | | | | | We depend on BLORP to convert the clear color and write it into the clear color buffer for us. However, we weren't bothering to call blorp in the case where the state is ISL_AUX_STATE_CLEAR. This leads to the clear color not getting properly updated if we have back-to-back clears with different clear colors. Technically, we could go out of our way to set the clear color directly from iris in this case but this is a case we're unlikely to see in the wild so let's not bother. This matches what we already do for color surfaces. Cc: [email protected] Reported-by: Mark Janes <[email protected]> Reviewed-by: Nanley Chery <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4073> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4073>
* swr: Fix non-pod-varargs error.Vinson Lee2020-03-061-1/+1
| | | | | | | | | | | | ../src/gallium/drivers/swr/rasterizer/jitter/functionpasses/lower_x86.cpp:391:24: error: cannot pass object of non-trivial type 'std::string' (aka 'basic_string<char>') through variadic function; call will abort at runtime [-Wnon-pod-varargs] pFunc->getName().str()); ^ Fixes: ff8265b64ff1 ("gallium/swr: Fix llvm11 compilation issues") Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Jan Zielinski <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4008> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4008>
* iris: Enable HiZ and stencil CCS for blorp blit destinationsJason Ekstrand2020-03-051-36/+25
| | | | | | | | | Now that blorp blits write to depth and stencil as depth and stencil, we can leave HiZ and stencil CCS enabled for blorp blit destinations. Reviewed-by: Nanley Chery <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3717> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3717>
* iris: Enable CCS for copies from HiZ+CCS depth buffersJason Ekstrand2020-03-051-8/+12
| | | | | | | | | Ever since b274469daae, BLORP is able to sample from whatever the sampler supports. In c0c899cf7892, we added HiZ support for copies from HiZ compressed depth buffers but forgot HiZ+CCS. Reviewed-by: Nanley Chery <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3717>
* iris: Allow HiZ on blit sourcesJason Ekstrand2020-03-051-1/+1
| | | | | | | | | | Ever since 95cc5438ebf, BLORP has been able to read from HiZ-compressed depth buffers as long as the sampler supports HiZ. This just makes iris stop doing the unneeded resolve. Closes: #2583 Reviewed-by: Nanley Chery <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3717>
* android: r600/sfn: Add GDS instructionsMauro Rossi2020-03-041-0/+2
| | | | | | | | | | | | Fixes the following building errors: external/mesa/src/gallium/drivers/r600/sfn/sfn_emitssboinstruction.cpp:59: error: undefined reference to 'r600::GDSInstr::GDSInstr(r600::ESDOp, r600::GPRVector const&, std::__1::shared_ptr<r600::Value> const&, std::__1::shared_ptr<r600::Value> const&, std::__1::shared_ptr<r600::Value> const&, int)' ... external/mesa/src/gallium/drivers/r600/sfn/sfn_emitssboinstruction.cpp:256: error: undefined reference to 'r600::RatInstruction::RatInstruction(r600::ECFOpCode, r600::RatInstruction::ERatOp, r600::GPRVector const&, r600::GPRVector const&, int, std::__1::shared_ptr<r600::Value> const&, int, int, int, bool)' Fixes: 32d3435a ("r600/sfn: Add GDS instructions") Signed-off-by: Mauro Rossi <[email protected]> Reviewed-by: Gert Wollny <[email protected]>
* android: r600/sfn: fix includes and libmesa_nir dependencyMauro Rossi2020-03-041-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | Fixes the following building errors: In file included from external/mesa/src/gallium/drivers/r600/sfn/sfn_debug.cpp:28: In file included from external/mesa/src/gallium/drivers/r600/sfn/sfn_debug.h:34: In file included from external/mesa/src/compiler/nir/nir.h:41: In file included from external/mesa/src/compiler/nir_types.h:36: external/mesa/src/compiler/glsl_types.h:38:10: fatal error: 'main/config.h' file not found #include "main/config.h" ^~~~~~~~~~~~~~~ 1 error generated. In file included from external/mesa/src/gallium/drivers/r600/sfn/sfn_debug.cpp:28: In file included from external/mesa/src/gallium/drivers/r600/sfn/sfn_debug.h:34: external/mesa/src/compiler/nir/nir.h:50:10: fatal error: 'nir_opcodes.h' file not found #include "nir_opcodes.h" ^~~~~~~~~~~~~~~ 1 error generated. Fixes: f718ac62 ("r600/sfn: Add a basic nir shader backend") Signed-off-by: Mauro Rossi <[email protected]> Reviewed-by: Gert Wollny <[email protected]>