summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2018-03-12i965: Replace hw blitter with Blorp in CopyPixels.jenkinsLaura Ekstrand1-10/+12
Needs to use brw_blorp_blit_miptrees rather than copy in order to properly handle differing image formats.
2018-03-12i965, meta: Remove color logic ops from CopyPixels.Laura Ekstrand2-3/+11
Blorp doesn't handle color logic ops. Since color logic ops functionality is ancient and rarely ever used, we have chosen not to add it to Blorp at this time. This patch removes logic ops in preparation for porting CopyPixels to Blorp. Since logic ops is also not implemented in meta, this adds a fallback to swrast.
2018-03-12make some comments on bitmap.Laura Ekstrand1-0/+8
2018-03-12i965: Remove unnecessary compatible formats check in DrawPixels.Laura Ekstrand1-6/+0
Now that the src formats bug is fixed (see previous commit), we can remove the format check and let blorp handle format conversions.
2018-03-12i965: Fix bug in src format for DrawPixels.Laura Ekstrand1-1/+1
For some reason, the hardware blitter version of DrawPixels was creating a miptree for the src image with the format for the dst image. This was confusing the blorp format conversion. Creating the miptree with the src format fixes this issue.
2018-03-12i965: Replace hw blitter with blorp in DrawPixels.Laura Ekstrand1-9/+22
Some code added to account for coordinate flips between OpenGL and the driver.
2018-03-12gallium: Use struct gl_array_attributes* as st_pipe_vertex_format argument.Mathias Fröhlich3-24/+11
Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
2018-03-12mesa: Don't write to user buffer in glGetTexParameterIuiv on errorIan Romanick1-26/+2
With some sets of optimization flags, GCC will generate warnings like this: src/mesa/main/texparam.c:2327:27: warning: ‘*((void *)&ip+12)’ may be used uninitialized in this function [-Wmaybe-uninitialized] params[3] = ip[3]; ~~^~~ src/mesa/main/texparam.c:2320:16: note: ‘*((void *)&ip+12)’ was declared here GLint ip[4]; ^~ ip is not initialized in cases where a GL error is generated. In these cases, we should *not* write to the user's buffer, so this is actually a bug. I wrote a new piglit test gl-3.0-texparameteri to show this bug. I suspect that Coverity also detected this, but the scan site is currently down. Fixes: c2c507786 "main: Added entry points for glGetTextureParameteriv, Iiv, and Iuiv." Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2018-03-12gallium: work around libtool relink issue for libdrmRoman Gilg1-1/+1
This is similar to commit 90633079. libtool links first to system directories instead of custom locations of libdrm on relinking. Since a more recent libdrm version than the one provided by the system is often needed when compiling mesa, make sure this works by putting libdrm in front. See also: https://bugs.freedesktop.org/show_bug.cgi?id=100259 Signed-off-by: Roman Gilg <subdiff@gmail.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2018-03-12vulkan: autotools: do not redirect stdin/stdout for wayland-scannerEmil Velikov1-4/+4
The tool accepts the input and output files as arguments. There's no need for the redirection. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
2018-03-12wayland-drm: autotools: do not redirect stdin/stdout for wayland-scannerEmil Velikov1-3/+3
The tool accepts the input and output files as arguments. There's no need for the redirection. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
2018-03-12egl: autotools: do not redirect stdin/stdout for wayland-scannerEmil Velikov1-2/+2
The tool accepts the input and output files as arguments. There's no need for the redirection. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
2018-03-12docs: document removal of GLX_SGIX_swap_{barrier,group} stubsEmil Velikov1-1/+2
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
2018-03-12glx: remove empty GLX_SGIX_swap_group stubsEmil Velikov4-30/+0
The extension was never implemented. Quick search suggests: - no actual users (on my Arch setup) - the Nvidia driver does not implement the extension Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Acked-by: Ian Romanick <ian.d.romanick@intel.com> Acked-by: Brian Paul <brianp@vmware.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
2018-03-12gallium/x11: remove empty GLX_SGIX_swap_group stubsEmil Velikov2-15/+0
The extension was never implemented. Quick search suggests: - no actual users (on my Arch setup) - the Nvidia driver does not implement the extension Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Acked-by: Ian Romanick <ian.d.romanick@intel.com> Acked-by: Brian Paul <brianp@vmware.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
2018-03-12x11: remove empty GLX_SGIX_swap_group stubsEmil Velikov3-34/+0
The extension was never implemented. Quick search suggests: - no actual users (on my Arch setup) - the Nvidia driver does not implement the extension Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Acked-by: Ian Romanick <ian.d.romanick@intel.com> Acked-by: Brian Paul <brianp@vmware.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
2018-03-12glx: remove empty GLX_SGIX_swap_barrier stubsEmil Velikov4-48/+0
The extension was never implemented. Quick search suggests: - no actual users (on my Arch setup) - the Nvidia driver does not implement the extension Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Acked-by: Ian Romanick <ian.d.romanick@intel.com> Acked-by: Brian Paul <brianp@vmware.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
2018-03-12gallium/x11: remove empty GLX_SGIX_swap_barrier stubsEmil Velikov2-25/+0
The extension was never implemented. Quick search suggests: - no actual users (on my Arch setup) - the Nvidia driver does not implement the extension Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Acked-by: Ian Romanick <ian.d.romanick@intel.com> Acked-by: Brian Paul <brianp@vmware.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
2018-03-12x11: remove empty GLX_SGIX_swap_barrier stubsEmil Velikov3-57/+0
The extension was never implemented. Quick search suggests: - no actual users (on my Arch setup) - the Nvidia driver does not implement the extension Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Acked-by: Ian Romanick <ian.d.romanick@intel.com> Acked-by: Brian Paul <brianp@vmware.com> Reviewed-by: Adam Jackson <ajax@redhat.com>
2018-03-12configure: remove unused AM_CONDITIONALEmil Velikov1-1/+0
Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
2018-03-12radv: Increase the number of dynamic uniform buffers.Bas Nieuwenhuizen2-3/+5
The vulkan API is not ideal as it does not allow us have a shared limit. Feral needs 15+6 for one of their games, and I'm not a fan of overcommitting the limits, so increase the number of dynamic uniform buffers to 16. CC: <mesa-stable@lists.freedesktop.org> CC: Alex Smith <asmith@feralinteractive.com> Reviewed-by: Dave Airlie <airlied@redhat.com>
2018-03-12u_vbuf/translate: pass max_index into the set_buffer.Dave Airlie1-1/+1
This fixes a memory trashing crash (not the test) seen with dEQP-GLES3.stress.draw.unaligned_data.random.203 on virgl. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
2018-03-12r600: implement callstack workaround for evergreen.Dave Airlie1-8/+31
This is ported from the sb backend, there are some issues with evergreen stacks on the boundary between entries and ALU_PUSH_BEFORE instructions. Whenever we are going to use a push before, we check the stack usage and if we have to use the workaround, then we switch to a separate push. I noticed this problem dealing with some of the soft fp64 shaders, in nosb mode, they are quite stack happy. This fixes all the glitches and inconsistencies I've seen with them Reviewed-by: Roland Scheidegger <sroland@vmware.com> Tested-by: Elie Tournier <elie.tournier@collabora.com> Cc: <mesa-stable@lists.freedesktop.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
2018-03-11gallium/util: add helper util_wait_for_idleMarek Olšák2-0/+15
This is an old patch that I had.
2018-03-10u_blit: (trivial) u_blit.h needs to include p_defines.hRoland Scheidegger1-0/+1
(For the pipe_tex_filter enum) Reviewed-by: Mathias Fröhlich <mathias.froehlich@web.de> Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2018-03-10travis: bump libxcb version to 1.13Christian Gmeiner1-2/+2
Fixes following dependency problem: Native dependency xcb-dri3 found: NO found '1.11' but need: '>= 1.13' Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Daniel Stone <daniels@collabora.com> Fixes: c80c08e22603 ("vulkan/wsi/x11: Add support for DRI3 v1.2")
2018-03-10mesa: Make gl_vertex_array contain pointers to first order VAO members.Mathias Fröhlich27-437/+480
Instead of keeping a copy of the vertex array content in struct gl_vertex_array only keep pointers to the first order information originaly in the VAO. For that represent the current values by struct gl_array_attributes and struct gl_vertex_buffer_binding. v2: Change comments. Remove gl... prefix from variables except in the i965 directory where it was like that before. Reindent because of that. Reviewed-by: Brian Paul <brianp@vmware.com> Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
2018-03-10draw: fix alpha value for very short aa linesRoland Scheidegger2-2/+24
The logic would not work correctly for line lengths smaller than 1.0, even a degenerated line with length 0 would still produce a fragment with anyhwere between alpha 0.0 and 0.5. Reviewed-by: Brian Paul <brianp@vmware.com>
2018-03-09intel/vulkan: Hard code CS scratch_ids_per_subslice for CherryviewJordan Justen1-17/+28
Ken suggested that we might be underallocating scratch space on HD 400. Allocating scratch space as though there was actually 8 EUs seems to help with a GPU hang seen on synmark CSDof. Cc: <mesa-stable@lists.freedesktop.org> Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2018-03-09i965: Hard code CS scratch_ids_per_subslice for CherryviewJordan Justen1-17/+27
Ken suggested that we might be underallocating scratch space on HD 400. Allocating scratch space as though there was actually 8 EUs seems to help with a GPU hang seen on synmark CSDof. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104636 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105290 Cc: <mesa-stable@lists.freedesktop.org> Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Tested-by: Eero Tamminen <eero.t.tamminen@intel.com>
2018-03-09st/dri: fix OpenGL-OpenCL interop for GL_TEXTURE_BUFFERMarek Olšák1-24/+34
Tested by our OpenCL team. Fixes: 9c499e6759b26c5e "st/mesa: don't invoke st_finalize_texture & st_convert_sampler for TBOs" Acked-by: Alex Deucher <alexander.deucher@amd.com>
2018-03-09radeonsi: add a workaround for GFX9 hang with init_config alignmentMarek Olšák1-1/+2
Fixes: 75c5d25f0f34cd702 "radeonsi: align command buffer starting address to fix some Raven hangs" Cc: 17.3 18.0 <mesa-stable@lists.freedesktop.org>
2018-03-09ac/gpu_info: print ib_start_alignment, add assertionMarek Olšák1-0/+2
2018-03-09meson: Use system_has_kms_drm in default driver selectionGreg V1-3/+5
Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
2018-03-09broadcom/vc4: Add an accelerated path to turn raster R8/RG88 into tiled.Eric Anholt3-0/+211
Drawing a 1080p YV12 video stream generated by MMAL goes from 10.5 FPS to 36.
2018-03-09gallium: Add a util_blitter path for using a custom VS and FS.Eric Anholt2-0/+69
Like the r600 paths to use other custom states, we pass in a couple of parameters to customize the innards of the blitter. It's up to the caller to wrap other state necessary for its shaders (for example, constant buffers for the uniforms the shader uses). Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2018-03-09broadcom/vc4: Allow binding non-zero constant buffers.Eric Anholt5-5/+53
We're going to use UBO loads for implementing YUV linear-to-T-format blits.
2018-03-09broadcom: Remove our defines of DRM_FORMAT_MOD_INVALID.Eric Anholt2-8/+0
The imported drm_fourcc.h handles it now.
2018-03-09broadcom: Suppress compiler warnings about enum pipe_tex_filter.Eric Anholt2-0/+2
2018-03-09egl/x11: Re-allocate buffers if format is suboptimalLouis-Francis Ratté-Boulianne6-7/+44
If PresentCompleteNotify event says the pixmap was presented with mode PresentCompleteModeSuboptimalCopy, it means the pixmap could possibly have been flipped instead if allocated with a different format/modifier. Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
2018-03-09egl/x11: Support DRI3 v1.1Louis-Francis Ratté-Boulianne7-63/+383
Add support for DRI3 v1.1, which allows pixmaps to be backed by multi-planar buffers, or those with format modifiers. This is both for allocating render buffers, as well as EGLImage imports from a native pixmap (EGL_NATIVE_PIXMAP_KHR). Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
2018-03-09vulkan/wsi/x11: Return VK_SUBOPTIMAL_KHR for X11Louis-Francis Ratté-Boulianne3-5/+63
When it is detected that a window could have been flipped but has been copied because of suboptimal format/modifier. The Vulkan client should then re-create the swapchain. Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
2018-03-09vulkan/wsi/x11: Add support for DRI3 v1.2Daniel Stone3-19/+164
Adds support for multiple planes and buffer modifiers. v4: Rename "has_dri3_v1_1" to "has_dri3_modifiers" v12: Multi-planar/modifier support is now DRI3 v1.2; also update release versions
2018-03-09autotools: include all meson.build filesDylan Baker1-0/+2
Otherwise SWR cannot be built with meson from an autotools generated tarball, such as the 18.0.0-rc4 tarball. Fixes: 16bf81383080 ("meson/swr: re-shuffle generated files") Signed-off-by: Dylan Baker <dylan.c.baker@intel.com> Reviewed-by: George Kyriazis <george.kyriazis@intel.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2018-03-09st/mesa: gl_program::info.system_values_read is a 64-bit-fieldMichel Dänzer2-7/+7
We were dropping the upper 32 bits, which caused assertion failures in some compute shader piglit tests with radeonsi since the commit below. Fixes: 752e96970303 ("compiler: Add two new system values for subgroups") Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2018-03-09swr/rast: Refactor memory gather operationsGeorge Kyriazis2-6/+4
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
2018-03-09swr/rast: Add KNOB_DISABLE_SPLIT_DRAWGeorge Kyriazis2-8/+26
This is useful for archrast data collection. This greatly speeds up the post processing script since there is significantly less events generated. Finally, this is a simpler option to communicate to users than having them directly adjust MAX_PRIMS_PER_DRAW and MAX_TESS_PRIMS_PER_DRAW. Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
2018-03-09swr/rast: Add VPOPCNTGeorge Kyriazis2-0/+9
Supports popcnt on vector masks (e.g. <8 x i1>) Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
2018-03-09swr/rast: Add tracking for stream out topologyGeorge Kyriazis4-5/+8
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
2018-03-09swr/rast: Add split draw and other state information to DrawInfoEvent.George Kyriazis4-32/+22
Removed specific split draw events. Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>