- 20 Oct, 2017 40 commits
-
-
Eric Anholt authored
A bit of spec text suggested that (like vc4) condition codes should be used for discards, and the simulator was fine with it, but the 7268 disagrees and you have to use SETMSF instead or the color comes through. Fixes glsl-fs-discard-01 and many of the interpolation-with-clipping tests.
-
Eric Anholt authored
We don't have native instructions for them, so set up the lowering. Once we support the bfi instructions that get generated, they should start actually working.
-
Eric Anholt authored
We weren't ever filling in the texture state record, so we'd dereference NULL from the shader.
-
Eric Anholt authored
I was generating some stub values to bring the driver up, but fill them in properly now. We now set 1.0 or 1u as appropriate, and thanks to being in their own BO it fixes piglit failures on the 7268 (where our 4-byte alignment was insufficient). Fixes const-packHalf2x16.shader_test
-
Eric Anholt authored
This should reduce our draw-time overhead, and puts the code where it should go long term.
-
Eric Anholt authored
Fixes: 59fb59ad ("nir: Get rid of nir_shader::stage")
-
Matt Turner authored
Align1 mode offers some nice features over align16, like access to more data types and the ability to use a 16-bit immediate. This patch does not start using any new features. It just emits ternary instructions in align1 mode. Reviewed-by:
Scott D Phillips <scott.d.phillips@intel.com>
-
Matt Turner authored
Reviewed-by:
Scott D Phillips <scott.d.phillips@intel.com>
-
Matt Turner authored
Reviewed-by:
Scott D Phillips <scott.d.phillips@intel.com>
-
Matt Turner authored
Reviewed-by:
Scott D Phillips <scott.d.phillips@intel.com>
-
Matt Turner authored
Reviewed-by:
Scott D Phillips <scott.d.phillips@intel.com>
-
Matt Turner authored
Reviewed-by:
Scott D Phillips <scott.d.phillips@intel.com>
-
Matt Turner authored
Reviewed-by:
Scott D Phillips <scott.d.phillips@intel.com>
-
Matt Turner authored
Put hw_ in the name so that it's clear these are the hardware encodings. Similar to commit 9fb83233 ("i965: Rename brw_inst's functions that access the register type") Reviewed-by:
Scott D Phillips <scott.d.phillips@intel.com>
-
Matt Turner authored
Reviewed-by:
Scott D Phillips <scott.d.phillips@intel.com>
-
Matt Turner authored
The instruction word contains SubRegNum[4:2] so it's in units of dwords (hence the * 4 to get it in terms of bytes). Before this patch, the subreg would have been wrong for DF arguments. Reviewed-by:
Scott D Phillips <scott.d.phillips@intel.com>
-
Matt Turner authored
Reviewed-by:
Scott D Phillips <scott.d.phillips@intel.com>
-
Matt Turner authored
I'm going to call this from brw_inst.h, and I don't want to have to include all of brw_reg.h. Reviewed-by:
Scott D Phillips <scott.d.phillips@intel.com>
-
Jason Ekstrand authored
It's redundant with nir_shader::info::stage. Acked-by:
Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org> Reviewed-by:
Jordan Justen <jordan.l.justen@intel.com>
-
Samuel Pitoiset authored
Ported from RadeonSI. The time where shaders are idle should be shorter now. This can give a little boost, like +6% with the dynamicubo Vulkan demo. 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>
-
Samuel Pitoiset authored
Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-
Marek Olšák authored
trivial.
-
Christian Gmeiner authored
Galliums query_type used in APIs is unsigned. Signed-off-by:
Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by:
Wladimir J. van der Laan <laanwj@gmail.com>
-
Christian Gmeiner authored
Signed-off-by:
Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by:
Wladimir J. van der Laan <laanwj@gmail.com>
-
Christian Gmeiner authored
Passes most occlusion query piglits. The following piglits are broken: - spec@arb_occlusion_query@occlusion_query_meta_fragments - spec@arb_occlusion_query@occlusion_query_meta_save - spec@arb_occlusion_query2@render v1 -> v2: - use one sample provider for all occlusion queries tyes - add comment about 'magic' value 0x1DF5E76 Signed-off-by:
Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by:
Wladimir J. van der Laan <laanwj@gmail.com>
-
Christian Gmeiner authored
No hardware query is supported yet. v1 -> v2 - removed query_type from strcut etna_hw_sample_provider Signed-off-by:
Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by:
Wladimir J. van der Laan <laanwj@gmail.com>
-
Christian Gmeiner authored
Update to etna_viv commit 6c9c706. Signed-off-by:
Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by:
Wladimir J. van der Laan <laanwj@gmail.com>
-
Chris Wilson authored
Suggested-by:
Emil Velikov <emil.velikov@collabora.com> Signed-off-by:
Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org>
-
Chris Wilson authored
Hook up the RendererQuery for __DRI2_RENDERER_HAS_CONTEXT_PRIORITY to report the available DRM_I915_GEM_CONTEXT_SETPARAM options based on the per-client default context. The kernel will validate the request to change the property, so we get an accurate reflection of available support (based on kernel version and privilege) and we should only have to do it once during screen setup -- although the SETPARAM should be fast, they are still an ioctl each. Signed-off-by:
Chris Wilson <chris@chris-wilson.co.uk> Cc: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org>
-
Chris Wilson authored
Decode the EGL/DRI priority enum into the [-1023, 1023] range as interpreted by the kernel and call DRM_I915_GEM_CONTEXT_SETPARAM to adjust the priority. We use 0 as the default medium priority (also the kernel default) and so only need adjust up or down. By only doing the adjustment if not setting to medium, we can faithfully report any error whilst setting without worrying about kernel version. Signed-off-by:
Chris Wilson <chris@chris-wilson.co.uk> Cc: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org>
-
Chris Wilson authored
Mention to the debug log if the kernel scheduler is enabled; and in particular if it has preemption enabled. Signed-off-by:
Chris Wilson <chris@chris-wilson.co.uk> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Cc: Ben Widawsky <ben@bwidawsk.net> Reviewed-by:
Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org>
-
Chris Wilson authored
Pulling in changes up to kernel commit ac14fbd460d0ec16e7750e40dcd8199b0ff83d0a Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Tue Oct 3 21:34:53 2017 +0100 drm/i915/scheduler: Support user-defined priorities and including the fixup from kernel commit 822a4b673284672af697ccd66e8795f8a712a90d Author: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Date: Fri Oct 6 13:45:59 2017 +0300 drm/i915: Don't use BIT() in UAPI section for implementing IMG_context_priority. Signed-off-by:
Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org>
-
Chris Wilson authored
Jump through the layers of abstraction between egl and dri in order to feed the context priority attribute through to the backend. This requires us to read the value from the base _egl_context, convert it to a DRI attribute, parse it again in the generic context creator before passing it to the driver as a function parameter. In order to not require us to pass back the actual value of the context priority after creation, we impose that drivers should report the available set of priorities during screen setup (and then they may chose to fail if given an invalid value as that should have been checked at the user boundary.) Signed-off-by:
Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Ben Widawsky <ben@bwidawsk.net> # i915/i965 Reviewed-by:
Emil Velikov <emil.velikov@collabora.com> Reviewed-by:
Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org>
-
Chris Wilson authored
IMG_context_priority https://www.khronos.org/registry/egl/extensions/IMG/EGL_IMG_context_priority.txt "This extension allows an EGLContext to be created with a priority hint. It is possible that an implementation will not honour the hint, especially if there are constraints on the number of high priority contexts available in the system, or system policy limits access to high priority contexts to appropriate system privilege level. A query is provided to find the real priority level assigned to the context after creation." The extension adds a new eglCreateContext attribute for choosing a priority hint. This stub parses the attribute and copies into the base struct _egl_context, and hooks up the query similarly. Since the attribute is purely a hint, I have no qualms about the lack of implementation before reporting back the value the user gave! v2: Remember to set the default ContextPriority value to medium. v3: Use the driRendererQuery interface to probe the backend for supported priority values and use those to mask the EGL interface. v4: Treat the priority attrib as a hint and gracefully mask any requests not supported by the driver, the EGLContext will remain at medium priority. Signed-off-by:
Chris Wilson <chris@chris-wilson.co.uk> Cc: Rob Clark <robdclark@gmail.com> Reviewed-by:
Ben Widawsky <ben@bwidawsk.net> Reviewed-by:
Emil Velikov <emli.velikov@collabora.com> Reviewed-by:
Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org>
-
Fredrik Höglund authored
The Vulkan specification says: "... an execution dependency with only VK_PIPELINE_STAGE_TOP_OF_- PIPE_BIT in the source stage mask will effectively not wait for any prior commands to complete." Signed-off-by:
Fredrik Höglund <fredrik@kde.org> Reviewed-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Reviewed-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com>
-
Samuel Pitoiset authored
Fixes two compilation warnings in release build. Trivial. Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com>
-
Samuel Pitoiset authored
Similar to the dispatch codepath. 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>
-
Samuel Pitoiset authored
Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-