- 29 May, 2018 40 commits
-
-
Timothy Arceri authored
This is required for tessellation shader Compat profile support. Reviewed-by:
Marek Olšák <marek.olsak@amd.com>
-
Dave Airlie authored
I disliked removing the const here, function tables are meant to be const just to avoid having to think about them, make a second table for the shm vs non-shm paths to use. Reviewed-by:
Adam Jackson <ajax@redhat.com>
-
Marc-André Lureau authored
Reviewed-by:
Dave Airlie <airlied@redhat.com> Reviewed-by:
Adam Jackson <ajax@redhat.com>
-
Marc-André Lureau authored
Reviewed-by:
Dave Airlie <airlied@redhat.com> Reviewed-by:
Adam Jackson <ajax@redhat.com>
-
Marc-André Lureau authored
Reviewed-by:
Dave Airlie <airlied@redhat.com> Reviewed-by:
Adam Jackson <ajax@redhat.com>
-
Marc-André Lureau authored
Implements putImageShm from DRIswrastLoaderExtension. If XShm extension is not available, or fails, it will fallback on regular XPutImage(). Tested on Linux only with 16bpp and 32bpp visual. (airlied: tested on 24bpp as well) Reviewed-by:
Dave Airlie <airlied@redhat.com> Reviewed-by:
Adam Jackson <ajax@redhat.com>
-
Marc-André Lureau authored
If drisw_loader_funcs implements put_image_shm, allocates display target data with shared memory and display with put_image_shm(). Reviewed-by:
Dave Airlie <airlied@redhat.com> Reviewed-by:
Adam Jackson <ajax@redhat.com>
-
Marc-André Lureau authored
If the DRIswrastLoaderExtension implements putImageShm, bind it to drisw_loader_funcs. Reviewed-by:
Dave Airlie <airlied@redhat.com> Reviewed-by:
Adam Jackson <ajax@redhat.com>
-
Marc-André Lureau authored
Add new API to put and get an image using shared memory. Instead of only passing the data pointer, 3 arguments are given: the shmid, the data offset and the shmaddr. Bump interface version. Reviewed-by:
Dave Airlie <airlied@redhat.com> Reviewed-by:
Adam Jackson <ajax@redhat.com>
-
Dave Airlie authored
This just renames this as we want to add an shm handle which isn't really drm related. Originally by: Marc-André Lureau <marcandre.lureau@gmail.com> (airlied: I used this sed script instead) This was generated with: git grep -l 'DRM_API_' | xargs sed -i 's/DRM_API_/WINSYS_/g' Reviewed-by:
Marek Olšák <marek.olsak@amd.com>
-
Marc-André Lureau authored
This will be used in the drisw interface later, which isn't drm specific. Reviewed-by:
Marek Olšák <marek.olsak@amd.com>
-
Francisco Jerez authored
When using multiple RT write messages to the same RT such as for dual-source blending or all RT writes in SIMD32, we have to set the "Last Render Target Select" bit on all write messages that target the last RT but only set EOT on the last RT write in the shader. Special-casing for dual-source blend works today because that is the only case which requires multiple RT write messages per RT. When we start doing SIMD32, this will become much more common so we add a dedicated bit for it. Reviewed-by:
Jason Ekstrand <jason@jlekstrand.net> Reviewed-by:
Matt Turner <mattst88@gmail.com>
-
Francisco Jerez authored
The only reason it was it's own opcode was so that we could detect it and adjust the source register based on the payload setup. Now that we're using the ATTR file for FS inputs, there's no point in having a magic opcode for this. v2 (Jason Ekstrand): - Break the bit which removes the CINTERP opcode into its own patch Reviewed-by:
Jason Ekstrand <jason@jlekstrand.net> Reviewed-by:
Matt Turner <mattst88@gmail.com>
-
Francisco Jerez authored
This replaces the special magic opcodes which implicitly read inputs with explicit use of the ATTR file. v2 (Jason Ekstrand): - Break into multiple patches - Change the units of the FS ATTR to be in logical scalars Reviewed-by:
Jason Ekstrand <jason@jlekstrand.net> Reviewed-by:
Matt Turner <mattst88@gmail.com>
-
Francisco Jerez authored
v2 (Jason Ekstrand): - Break the refactor into its own patch Reviewed-by:
Jason Ekstrand <jason@jlekstrand.net> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org> Reviewed-by:
Matt Turner <mattst88@gmail.com>
-
Francisco Jerez authored
Reviewed-by:
Jason Ekstrand <jason@jlekstrand.net> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org> Reviewed-by:
Matt Turner <mattst88@gmail.com>
-
Jason Ekstrand authored
This is better than compression control because it naturally extends to SIMD32. v2: - Push/pop instruction state around adjusted codegen (Ken) Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org> Reviewed-by:
Matt Turner <mattst88@gmail.com>
-
Jason Ekstrand authored
The fall-back does not work correctly in SIMD16 mode and the register allocator should ensure that we never hit this case anyway. Reviewed-by:
Matt Turner <mattst88@gmail.com>
-
Jan Vesely authored
v2: Don't force build using gcc-4.8 Signed-off-by:
Jan Vesely <jan.vesely@rutgers.edu> Reviewed-By:
Aaron Watry <awatry@gmail.com>
-
Jan Vesely authored
Signed-off-by:
Jan Vesely <jan.vesely@rutgers.edu> Reviewed-By:
Aaron Watry <awatry@gmail.com>
-
Jan Vesely authored
v2: fix whitespace and indentation r332881 added an extra parameter to the emit function. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106619Signed-off-by:
Jan Vesely <jan.vesely@rutgers.edu> Reviewed-By:
Aaron Watry <awatry@gmail.com> Tested-By:
Aaron Watry <awatry@gmail.com> Tested-by:
Kai Wasserbäch <kai@dev.carbon-project.org>
-
Chris Wilson authored
Commit 92f01fc5 ("i965: Emit VF cache invalidates for 48-bit addressing bugs with softpin.") tried to only emit the VF invalidate if the high bits changed, but it accidentally always set need_invalidate to true; causing it to emit unconditionally emit the pipe control before every primitive. Fixes: 92f01fc5 ("i965: Emit VF cache invalidates for 48-bit addressing bugs with softpin.") Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106708Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org>
-
Eric Engestrom authored
The modifiers array hasn't been initialised by then, much less with data that would need freeing. Move the label after the loop to fix this. Fixes: c80c08e2 ("vulkan/wsi/x11: Add support for DRI3 v1.2") Signed-off-by:
Eric Engestrom <eric.engestrom@intel.com> Reviewed-by:
Lionel Landwerlin <lionel.g.landwerlin@intel.com>
-
Eric Engestrom authored
Signed-off-by:
Eric Engestrom <eric.engestrom@intel.com> Reviewed-by:
Marek Olšák <marek.olsak@amd.com> --- v2: rebased on top of 432df741 "dri_util: Add R10G10B10{A,X}2 translation between DRI and mesa_format."
-
Eric Engestrom authored
0 is not a valid value for the __DRI_IMAGE_FORMAT_* enum. It is, however, the value of MESA_FORMAT_NONE, which two of the callers (i915 & i965) checked for. The other callers (that check for errors, ie. st/dri) already check for __DRI_IMAGE_FORMAT_NONE. Signed-off-by:
Eric Engestrom <eric.engestrom@intel.com> Reviewed-by:
Marek Olšák <marek.olsak@amd.com>
-
Eric Engestrom authored
Fixes: 473af0b5 "egl/x11: deduplicate depth-to-format logic" Signed-off-by:
Eric Engestrom <eric.engestrom@intel.com> Tested-by:
Vinson Lee <vlee@freedesktop.org> Reviewed-by:
Yogesh Marathe <yogesh.marathe@intel.com>
-
Emil Velikov authored
Just like we do in the autotools build. Signed-off-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Dylan Baker <dylan@pnwbakers.com> Reviewed-by:
Eric Engestrom <eric.engestrom@intel.com>
-
Emil Velikov authored
Cannot happen since, props to the autodetection further up. Signed-off-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Dylan Baker <dylan@pnwbakers.com> Reviewed-by:
Eric Engestrom <eric.engestrom@intel.com>
-
Thierry Reding authored
Resources created with modifiers are treated as scanout because there is no way for applications to specify the usage (though that capability may be useful to have in the future). Currently all the resources created by applications with modifiers are for scanout, so make sure they have bind flags set accordingly. This is necessary in order to properly export buffers for such resources so that they can be shared with scanout hardware. Tested-by:
Daniel Kolesa <daniel@octaforge.org> Cc: mesa-stable@lists.freedesktop.org Signed-off-by:
Thierry Reding <treding@nvidia.com>
-
Thierry Reding authored
Resources created for scanout but without modifiers need to be treated as pitch-linear. This is because applications that don't use modifiers to create resources must be assumed to not understand modifiers and in turn won't be able to create a DRM framebuffer and passing along which modifiers were picked by the implementation. Tested-by:
Daniel Kolesa <daniel@octaforge.org> Cc: mesa-stable@lists.freedesktop.org Signed-off-by:
Thierry Reding <treding@nvidia.com>
-
Thierry Reding authored
This code path is no longer required with framebuffer modifier support. Tested-by:
Daniel Kolesa <daniel@octaforge.org> Cc: mesa-stable@lists.freedesktop.org Signed-off-by:
Thierry Reding <treding@nvidia.com>
-
Eric Engestrom authored
favicon.png is just gears.png resized to 64x64, and favicon.ico is generated using this command, adapted from the ImageMagick example [1]: $ convert favicon.png -background black \ \( -clone 0 -resize 16x16 \) \ \( -clone 0 -resize 32x32 \) \ \( -clone 0 -resize 48x48 \) \ \( -clone 0 -resize 64x64 \) \ -delete 0 -alpha off -colors 256 favicon.ico We could edit every html page to add `<link rel="icon" href="favicon.ico" />`, but there's not much point as pretty much every browser will pick it up automatically if the file is named `favicon.ico` and is in the root folder. [1] http://www.imagemagick.org/Usage/thumbnails/#faviconSigned-off-by:
Eric Engestrom <eric.engestrom@intel.com>
-
Eric Engestrom authored
Signed-off-by:
Eric Engestrom <eric.engestrom@intel.com>
-
Eric Engestrom authored
Signed-off-by:
Eric Engestrom <eric.engestrom@intel.com>
-
Karol Herbst authored
v2 (Jose Maria Casanova Crespo <jmcasanova@igalia.com>): add float16 support Signed-off-by:
Karol Herbst <kherbst@redhat.com> Reviewed-by:
Jose Maria Casanova Crespo <jmcasanova@igalia.com>
-
Pierre Moreau authored
Signed-off-by:
Karol Herbst <kherbst@redhat.com> Reviewed-by:
Karol Herbst <kherbst@redhat.com> Reviewed-by:
Ilia Mirkin <imirkin@alum.mit.edu>
-
Pierre Moreau authored
v2 (Karol Herbst <kherbst@redhat.com>): * removed unneeded ll * ll -> ull Signed-off-by:
Karol Herbst <kherbst@redhat.com> Reviewed-by:
Eric Engestrom <eric.engestrom@intel.com> Reviewed-by:
Ilia Mirkin <imirkin@alum.mit.edu>
-
Eric Engestrom authored
Signed-off-by:
Eric Engestrom <eric.engestrom@intel.com>
-
Samuel Pitoiset authored
This reduces the number of SET_SH_REG packets which are emitted for applications that use more than one descriptor set per stage. We should be able to emit more SET_SH_REG packets consecutively (like push constants and vertex buffers for the vertex stage), but this will be improved later. Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-
Samuel Pitoiset authored
Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-