- 21 Aug, 2019 40 commits
-
-
Kevin Strasser authored
In the case that __DRI_ATTRIB_FLOAT_BIT is set in the dri config, set EGL_COLOR_COMPONENT_TYPE_FLOAT_EXT in the egl config. Add a field to the platform driver visual to indicate if it has components that are in floating point form. Signed-off-by:
Kevin Strasser <kevin.strasser@intel.com> Reviewed-by:
Adam Jackson <ajax@redhat.com> Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com>
-
Kevin Strasser authored
In order to handle pixel formats that consist of floating point data, enable floatMode field in the dri config, and set __DRI_ATTRIB_FLOAT_BIT in the render type attribute. Signed-off-by:
Kevin Strasser <kevin.strasser@intel.com> Reviewed-by:
Adam Jackson <ajax@redhat.com> Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com>
-
Kevin Strasser authored
glx doesn't read the masks from the dri config directly, but for consistency add shifts to the glxconfig. Signed-off-by:
Kevin Strasser <kevin.strasser@intel.com> Reviewed-by:
Adam Jackson <ajax@redhat.com> Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Reviewed-by:
Emil Velikov <emil.l.velikov@gmail.com>
-
Kevin Strasser authored
Change dri2_add_config to take arrays of shifts and sizes, and compare with those set in the dri config. Convert all platform driver masks to shifts and sizes. In order to handle older drivers, where shift attributes aren't available, we fall back to the mask attributes and compute the shifts with ffs. Signed-off-by:
Kevin Strasser <kevin.strasser@intel.com> Reviewed-by:
Emil Velikov <emil.l.velikov@gmail.com>
-
Kevin Strasser authored
bitcount is free from the pipe header dependencies that make u_math.h hard to include by non-gallium specific code, so move it to bitscan.h. bitscan.h is included by u_math.h so existing references will continue working. Signed-off-by:
Kevin Strasser <kevin.strasser@intel.com> Reviewed-by:
Emil Velikov <emil.l.velikov@gmail.com>
-
Kevin Strasser authored
The existing mask attributes can only support up to 32 bpp. Introduce per-channel SHIFT attributes that indicate how many bits, from lsb towards msb, the bit field is offset. A shift of -1 will indicate that there is no bit field set for the channel. As old loaders will still be looking for masks, we set the masks to 0 for any formats wider than 32 bpp. Signed-off-by:
Kevin Strasser <kevin.strasser@intel.com> Reviewed-by:
Adam Jackson <ajax@redhat.com> Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Reviewed-by:
Emil Velikov <emil.l.velikov@gmail.com>
-
Kevin Strasser authored
rgb10 uses an 'if(allowed) continue' approach, do the same for rgba_ordering. Signed-off-by:
Kevin Strasser <kevin.strasser@intel.com> Reviewed-by:
Emil Velikov <emil.l.velikov@gmail.com>
-
Kevin Strasser authored
The driver checks dri config options and loader caps to filter out certain formats during config creation. Fold 4 call sites under a single helper function. Signed-off-by:
Kevin Strasser <kevin.strasser@intel.com> Reviewed-by:
Emil Velikov <emil.l.velikov@gmail.com>
-
Kevin Strasser authored
From drm-next commit 88ab9c76d191ad8645b483f31e2b394b0f3e280e Signed-off-by:
Kevin Strasser <kevin.strasser@intel.com> Reviewed-by:
Adam Jackson <ajax@redhat.com> Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Reviewed-by:
Emil Velikov <emil.velikov@collabora.com>
-
Andres Rodriguez authored
This debug option allows vkGet[Instance/Device]ProcAddr() to succeed even if the extension associated with the requested entrypoint was not enabled. This has come in handy in a few instances when debugging VR applications, so I thought it would be good to have a cleaned up version upstreamed. Reviewed-by:
Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
-
Alyssa Rosenzweig authored
Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Alyssa Rosenzweig authored
This should fix glDepthRangef issues. Eventually, something similar should allow implementing the depth bounds test. Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Alyssa Rosenzweig authored
We can handle some of it. Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Alyssa Rosenzweig authored
A pair of special flags can turn the texture/sampler handle fields into register selects. This means code like: texture(uTextures[hr28.w], ...) can be compiled to something like: texture ..., fsampler[hr28.w], texture[hr28.w] Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Alyssa Rosenzweig authored
This data structure is shared in other parts of the texture word, so let's streamline printing. Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Alyssa Rosenzweig authored
It's a large structure, apparently. Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Alyssa Rosenzweig authored
Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Alyssa Rosenzweig authored
Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Alyssa Rosenzweig authored
Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Alyssa Rosenzweig authored
Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Alyssa Rosenzweig authored
Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Alyssa Rosenzweig authored
Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Alyssa Rosenzweig authored
Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Alyssa Rosenzweig authored
These are unsigned so the clamp-positive is redundant. Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Alyssa Rosenzweig authored
Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Alyssa Rosenzweig authored
Useless check. Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Alyssa Rosenzweig authored
Coverity. Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Alyssa Rosenzweig authored
Coverity. Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Alyssa Rosenzweig authored
This allows nodes to be unsigned and prevents a class of weird signedness bugs identified by Coverity. Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Alyssa Rosenzweig authored
This path shouldn't be possible for in-spec shaders, but let's be defensive. (Because security, right? Mostly because Coverity.) Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Alyssa Rosenzweig authored
The checks confuse Coverity, so let's make it explicit what's going on. Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Alyssa Rosenzweig authored
Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Alyssa Rosenzweig authored
It's small; this way we don't leak memory. Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Alyssa Rosenzweig authored
Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Jason Ekstrand authored
Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Jason Ekstrand authored
So many duplicated switch statements.... Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org>
-
Jason Ekstrand authored
This better matches all the other atomic intrinsics such as those for SSBOs and shared variables where the sign is part of the intrinsic opcode. Both generators (GLSL and SPIR-V) know the sign from the type of the image variable or handle. In SPIR-V, signed min/max are separate opcodes from unsigned. Reviewed-by:
Kenneth Graunke <kenneth@whitecape.org> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Alyssa Rosenzweig authored
We can smush this into one-line per record as per usual. We still need more validation and cleaning this up, especially around instancing. But for LINEAR records, it works okay already. Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Alyssa Rosenzweig authored
Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-
Alyssa Rosenzweig authored
No need to break it out into extra lines. Signed-off-by:
Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-