summaryrefslogtreecommitdiff
path: root/src/mesa/drivers
AgeCommit message (Collapse)AuthorFilesLines
2020-11-09intel: Pointer to SCISSOR_RECT array should be 64B aligned20.3-branchpointAnuj Phogat1-2/+8
v2: Apply the workaround to all gen hardawre Ref: GEN:BUG:1409725701 Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Ivan Briano <ivan.briano@intel.com> Reviewed-by: Nanley Chery <nanley.g.chery@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7463>
2020-11-06mesa: Enable GL_MESA_pack_invert unconditionallyAdam Jackson3-3/+0
This newly enables the extension for r100 and vieux. As far as I can tell, that's safe to do. vieux's ReadPixels is just _mesa_readpixels, which clearly already handles it correctly because the extension is enabled for classic swrast. r100 has some custom acceleration paths before falling down to _mesa_readpixels, which winds its way through to r100_blit, which already has code to handle pack->Invert being set. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3156>
2020-11-04nir: add shader_info::bit_sizes_usedRhys Perry1-1/+1
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4791>
2020-11-02i965: remove prototypes of not-existing functionsMarcin Ślusarz2-6/+0
Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com> Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7353>
2020-11-02i965/bufmgr: Handle NULL bufmgr in brw_bufmgr_get_for_fdMichel Dänzer1-1/+2
brw_bufmgr_create can return NULL, in which case we'd crash in list_addtail. Reported by Coverity/clang. Fixes: 4094558e8643 ("i965: share buffer managers across screens") Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7335>
2020-10-30android: fix libsync dependencies (v2)Mauro Rossi1-0/+1
(v2) Remove include from Android.common.mk Avoid adding libsync shared dependency in Android.common.mk Add libsync shared dependency where needed, for easier tracking (v1) Fixes the following building errors: In file included from external/mesa/src/gallium/drivers/freedreno/a3xx/fd3_query.c:27: In file included from external/mesa/src/gallium/drivers/freedreno/freedreno_query_hw.h:33: In file included from external/mesa/src/gallium/drivers/freedreno/freedreno_context.h:33: external/mesa/src/util/libsync.h:48:10: fatal error: 'android/sync.h' file not found ^~~~~~~~~~~~~~~~ 1 error generated. In file included from external/mesa/src/mesa/drivers/dri/i965/brw_sync.c:41: external/mesa/src/util/libsync.h:48:10: fatal error: 'android/sync.h' file not found ^~~~~~~~~~~~~~~~ 1 error generated. In file included from external/mesa/src/gallium/auxiliary/util/u_tests.c:513: external/mesa/src/util/libsync.h:48:10: fatal error: 'android/sync.h' file not found ^~~~~~~~~~~~~~~~ 1 error generated. FAILED: out/target/product/x86_64/obj_x86/SHARED_LIBRARIES/i965_dri_intermediates/LINKED/i965_dri.so ... external/mesa/src/mesa/drivers/dri/i965/brw_sync.c:223: error: undefined reference to 'sync_wait' external/mesa/src/mesa/drivers/dri/i965/brw_sync.c:287: error: undefined reference to 'sync_wait' FAILED: out/target/product/x86_64/obj_x86/SHARED_LIBRARIES/gallium_dri_intermediates/LINKED/gallium_dri.so ... external/mesa/src/util/libsync.h:142: error: undefined reference to 'sync_merge' external/mesa/src/gallium/drivers/freedreno/freedreno_fence.c:94: error: undefined reference to 'sync_wait' external/mesa/src/gallium/auxiliary/util/u_tests.c:575: error: undefined reference to 'sync_wait' Fixes: 27b888794624 ("android: Add pre-4.7 Android kernel compatibility to our libsync header.") Signed-off-by: Mauro Rossi <issor.oruam@gmail.com> Acked-by: Rob Clark <robdclark@chromium.org> Acked-by: Eric Anholt <eric@anholt.net> Acked-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7306>
2020-10-29glsl: add extra pp tokens workaround and enable for CoRTimothy Arceri1-0/+1
The CTS now tests to make sure these are not allowed. However, previously drivers (including Mesa) would allow them to exist and just issue a warning. Some old applications such as Champions of Regnum seem to depend on this. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/422 Fixes: 43047384c331 ("glsl/glcpp: Promote "extra token at end of directive" from warning to error") Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7361>
2020-10-24mesa: Remove the key parameter from the _mesa_HashWalk callbackIan Romanick1-1/+1
_mesa_HashWalkLocked too. After the previous couple commits, there are no users. This eliminates a lot of unused parameter warnings. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7171>
2020-10-24i965: Get the gl_perf_query_object Id from the objectIan Romanick1-2/+2
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7171>
2020-10-22driconf: add a way to override indirect-GL extensionsMartin Peres1-0/+1
Support for DRI1 is not implemented, but who still uses that? Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Martin Peres <martin.peres@mupuf.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7212>
2020-10-22driconf: add a way to override GLX extensionsMartin Peres1-0/+4
Support for DRI1 is not implemented, but who still uses that? v2: - Add the option to the list of new features - Drop overriding the Xorg-exposed extensions Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Martin Peres <martin.peres@mupuf.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7212>
2020-10-22dri/DRI2ConfigQueryExtension: add support for string optionsMartin Peres1-1/+13
This will be useful to enable extension overriding as a drirc option. v2 (Adam Jackson): - Rename from configQuerystr to configQuerys for symmetry - Increase the version number of the interface Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Martin Peres <martin.peres@mupuf.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7212>
2020-10-19i965: Silence unused parameter warningsIan Romanick2-4/+5
src/mesa/drivers/dri/i965/intel_screen.c: In function ‘brw_driconf_get_xml’: src/mesa/drivers/dri/i965/intel_screen.c:103:33: warning: unused parameter ‘driver_name’ [-Wunused-parameter] 103 | brw_driconf_get_xml(const char *driver_name) | ~~~~~~~~~~~~^~~~~~~~~~~ src/mesa/drivers/dri/i965/intel_screen.c: In function ‘intel_unmap_image’: src/mesa/drivers/dri/i965/intel_screen.c:882:33: warning: unused parameter ‘context’ [-Wunused-parameter] 882 | intel_unmap_image(__DRIcontext *context, __DRIimage *image, void *map_info) | ~~~~~~~~~~~~~~^~~~~~~ src/mesa/drivers/dri/i965/intel_screen.c:882:54: warning: unused parameter ‘image’ [-Wunused-parameter] 882 | intel_unmap_image(__DRIcontext *context, __DRIimage *image, void *map_info) | ~~~~~~~~~~~~^~~~~ src/mesa/drivers/dri/i965/intel_screen.c: In function ‘intelReleaseBuffer’: src/mesa/drivers/dri/i965/intel_screen.c:2904:33: warning: unused parameter ‘dri_screen’ [-Wunused-parameter] 2904 | intelReleaseBuffer(__DRIscreen *dri_screen, __DRIbuffer *buffer) | ~~~~~~~~~~~~~^~~~~~~~~~ src/mesa/drivers/dri/i965/brw_context.c: In function ‘brw_set_background_context’: src/mesa/drivers/dri/i965/brw_context.c:144:58: warning: unused parameter ‘queue_info’ [-Wunused-parameter] 144 | struct util_queue_monitoring *queue_info) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7167>
2020-10-15i965: Don't build Gen10-specific files and librariesIan Romanick3-29/+1
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6899>
2020-10-15i965: Remove Gen10-specific state setup and workaroundsIan Romanick7-88/+10
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6899>
2020-10-15i965: Rename gen10_emit_isp_disable to gen7_emit_isp_disableIan Romanick3-3/+3
It's used on Gen7+, and there's nothing Gen10-specific about it. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6899>
2020-10-15i965: Make MOCS index tables static constIan Romanick1-2/+2
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6899>
2020-10-15i965: Silence many unused parameter warnings in genX_state_upload.cIan Romanick1-3/+4
This file gets built per-Gen, so the warnings are repeated a lot. src/mesa/drivers/dri/i965/genX_state_upload.c: In function ‘vf_invalidate_for_vb_48bit_transitions’: src/mesa/drivers/dri/i965/genX_state_upload.c:405:60: warning: unused parameter ‘brw’ [-Wunused-parameter] 405 | vf_invalidate_for_vb_48bit_transitions(struct brw_context *brw) | ~~~~~~~~~~~~~~~~~~~~^~~ src/mesa/drivers/dri/i965/genX_state_upload.c: In function ‘vf_invalidate_for_ib_48bit_transition’: src/mesa/drivers/dri/i965/genX_state_upload.c:444:59: warning: unused parameter ‘brw’ [-Wunused-parameter] 444 | vf_invalidate_for_ib_48bit_transition(struct brw_context *brw) | ~~~~~~~~~~~~~~~~~~~~^~~ src/mesa/drivers/dri/i965/genX_state_upload.c: In function ‘gen4_upload_default_color’: src/mesa/drivers/dri/i965/genX_state_upload.c:4951:40: warning: unused parameter ‘format’ [-Wunused-parameter] 4951 | mesa_format format, GLenum base_format, | ~~~~~~~~~~~~^~~~~~ Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6899>
2020-10-15i965: Silence many unused parameter warnings in genX_blorp_exec.cIan Romanick1-5/+5
This file gets built per-Gen, so the warnings are repeated a lot. src/mesa/drivers/dri/i965/genX_blorp_exec.c: In function ‘blorp_get_surface_address’: src/mesa/drivers/dri/i965/genX_blorp_exec.c:98:47: warning: unused parameter ‘blorp_batch’ [-Wunused-parameter] 98 | blorp_get_surface_address(struct blorp_batch *blorp_batch, | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ src/mesa/drivers/dri/i965/genX_blorp_exec.c:99:48: warning: unused parameter ‘address’ [-Wunused-parameter] 99 | struct blorp_address address) | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~ src/mesa/drivers/dri/i965/genX_blorp_exec.c: In function ‘blorp_vf_invalidate_for_vb_48b_transitions’: src/mesa/drivers/dri/i965/genX_blorp_exec.c:208:64: warning: unused parameter ‘batch’ [-Wunused-parameter] 208 | blorp_vf_invalidate_for_vb_48b_transitions(struct blorp_batch *batch, | ~~~~~~~~~~~~~~~~~~~~^~~~~ src/mesa/drivers/dri/i965/genX_blorp_exec.c:209:72: warning: unused parameter ‘addrs’ [-Wunused-parameter] 209 | const struct blorp_address *addrs, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ src/mesa/drivers/dri/i965/genX_blorp_exec.c:211:53: warning: unused parameter ‘num_vbs’ [-Wunused-parameter] 211 | unsigned num_vbs) | ~~~~~~~~~^~~~~~~ Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6899>
2020-10-15i965: Allow viewport array extensions with allow_higher_compat_versionIan Romanick1-3/+5
Also fix the obtuse comment. I had to dig back through the commit logs to find the real issue. GL_ARB_viewport_array requires geometry shaders, and in i965 the only way to have that is with a 3.2+ Core profile context... or use allow_higher_compat_version. This increases the maximum Compatibility profile version from 4.0 to 4.6 (on supported hardware) when the allow_higher_compat_version option is used. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7118>
2020-10-08i965: Take an isl_format in emit_buffer_surface_stateJason Ekstrand1-2/+2
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3932>
2020-10-06i965: drop likely/unlikely around INTEL_DEBUGMarcin Ślusarz16-27/+27
It's included in declaration of INTEL_DEBUG. Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com> Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6732>
2020-10-06intel: add INTEL_DEBUG expected value in declarationMarcin Ślusarz1-1/+1
Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com> Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6732>
2020-10-02driconf: Stop quoting true/false in boolean option definitions.Eric Anholt3-35/+35
Now that we're not trying to evade preprocessor macro expansion in preprocessor string concatenation, we can use plain old bools in option setup. Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6916>
2020-10-02driconf: Make the driver's declarations be structs instead of XML.Eric Anholt4-29/+49
We can generate the XML if anybody actually queries it, but this reduces the amount of work in driver setup and means that we'll be able to support driconf option queries on Android without libexpat. This updates the driconf interface struct version for i965, i915, and radeon to use the new getXml entrypoint to call the on-demand xml generation. Note that our loaders (egl, glx) implement the v2 function interface and don't use .xml when that's set, and the X server doesn't use this interface at all. XML generation tested on iris and i965 using adriconf Acked-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6916>
2020-10-02driconf: Use DRI_CONF_OPT_I for remaining int optionsEric Anholt1-4/+3
Now that we have a single range in the option and start==end means "no range", we can switch over these non-ranged int options. This will ease later refactors. Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6916>
2020-10-02driconf: Delete disjoint range support.Eric Anholt1-6/+5
The only user was radeon/r200, which was using it to have something that looks a lot like an enum value return a float from the config option. Just convert that option to a plain float value (for compat with existing driconfs) with the min and max of its disjoint range as the range. The driver's option handling code already correctly deals with other values in the range. The disjoint range support was a bunch of extra parsing for this dead driver, and made turning driconf into static structs difficult. Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6916>
2020-10-02r200: Reuse DRI_CONF_OPT_F for texture_blend_quality.Eric Anholt1-6/+2
I missed this one in the nested macros conversion. Reviewed-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6916>
2020-10-01intel/gen9: Enable MSC RAW Hazard AvoidanceAnuj Phogat2-0/+3
Workaround # 22011374674 Applied to i965, iris and anv drivers No performance impact is observed with WA. Cc: mesa-stable Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2020-09-25driconf: Use nesting macros for defining options.Eric Anholt4-78/+49
Manually balancing the BEGIN/ENDs is a recipe for xml validation failures, just make the macros do the balancing. The only ugly bit I think is that enums take a list of DRI_CONF_ENUM() without ','s in between them. Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6753>
2020-09-02i965: verify format width in blorp_get_client_boMarcin Ślusarz1-4/+9
Coverity complains about possible "Division or modulo by zero". Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6126>
2020-09-02intel/disasm: Label support in shader disassembly for UIP/JIPDanylo Piliaiev3-6/+6
Shader instructions which use UIP/JIP now get formatted with a label in addition with immediate value, labels have "LABEL%d" format. v2: - Consider brw_jump_scale when calculating label's offset From: "Lonnberg, Toni" <toni.lonnberg@intel.com> Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com> Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4245>
2020-09-02intel/disasm: brw_label and support functionsDanylo Piliaiev1-0/+1
Pre-work for shader disassembly label support. Introduction of the structures and functions used by the shader disassembly jump target labeling. From: "Lonnberg, Toni" <toni.lonnberg@intel.com> Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com> Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4245>
2020-08-18driconf: Support selection by Vulkan applicationName.Bas Nieuwenhuizen6-6/+6
This adds applicationName + version through like engineName. Rationale: A game (World War Z) includes the store name in the executable name, so has multiple executable names. CC: <mesa-stable@lists.freedesktop.org> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6120>
2020-08-11dri_util: Update internal_format to GL_RGB8 for MESA_FORMAT_B8G8R8X8_UNORMNanley Chery1-1/+1
Port the change done for RGBX8888 in 02a1f95386b43bf46cd1c8297d0955242f554fa2. If XR24 images are considered to be VIEW_CLASS_24_BITS-compatible, it's reasonable to assume that XB24 images would be as well. Fixes: bf576772ab4d ("dri_util: add driImageFormatToSizedInternalGLFormat function") Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6095>
2020-08-10intel/perf: fix performance counters availability after glFinishMarcin Ślusarz1-1/+1
Currently Linux kernel gathers performance counters at fixed intervals (~5-10ms), so if application uses AMD_performance_monitor extension and immediately after glFinish() asks GL driver for HW performance counter values it might not get any data (values == 0). Fix this by moving the "read counters from kernel" code from "is query ready" to "get counter values" callback with a loop around it. Unfortunately it means that the "read counters from kernel" code can spin for up to 10ms. Ideally kernel should gather performance counters whenever we ask it for counter values, but for now we have deal with what we have. Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com> Cc: <mesa-stable@lists.freedesktop.org> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5788>
2020-08-08i965: add support for force_gl_vendorTimothy Arceri2-0/+6
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3363 Reviewed-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6198>
2020-07-31i965/i915: Add colorspace support to YUV samplingDavid Stevens3-0/+13
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6122>
2020-07-29nir: Take a nir_shader and variable mode in assign_var_locationsJason Ekstrand1-2/+2
Reviewed-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5966>
2020-07-29nir: Add a nir_foreach_uniform_variable helperJason Ekstrand2-3/+3
This one's a bit more complex because it filters off only those variables with mode == nir_var_uniform. As such, it's not exactly a drop-in replacement for nir_foreach_variable(var, &nir->uniforms). Reviewed-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5966>
2020-07-28i965: propagate error from gen_perf_begin_query to glBeginPerfQueryINTELMarcin Ślusarz1-2/+2
Otherwise mesa will crash in glEndPerfQueryINTEL because OA BO is NULL. Signed-off-by: Marcin Ślusarz <marcin.slusarz@intel.com> Cc: <mesa-stable@lists.freedesktop.org> Reviewed-by: Mark Janes <mark.a.janes@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6094>
2020-07-17mesa: treat Color._AdvancedBlendMode as enumErik Faye-Lund2-2/+4
Signed-off-by: Elie Tournier <elie.tournier@collabora.com> Reviewed-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5516>
2020-07-15mesa: add bool param to _mesa_free_context_dataPierre-Eric Pelloux-Prayer6-10/+10
The param controls whether _mesa_destroy_debug_output should be called or not. No functional changes; this will be used by the next commit. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5789>
2020-07-04nouveau: fix pointer-sign warningTimothy Arceri1-1/+1
Fixes: e630271e0ec3 ("mesa: don't ever set NullBufferObj in gl_vertex_array_binding") Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5730>
2020-07-02radeon: add missing fallthrough commentsTimothy Arceri1-0/+3
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5705>
2020-07-02i965: add and fix fallthrough commentsTimothy Arceri4-6/+6
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5714>
2020-07-01i965: Explicitly cast value to uint64_tEmmanuel1-4/+4
In FreeBSD x86 and aarch64 __u64 is typedef to unsigned long and is the same size as unsigned long long. Since we are explicitly specifying the format, cast the value to the proper type. Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Emmanuel <manu@FreeBSD.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3559>
2020-06-22util: rename xmlpool.h to driconf.hEric Engestrom12-12/+12
To make it clearer what it is and does. Signed-off-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5440>
2020-06-22driconf: drop now unused translation facilityEric Engestrom9-25/+24
Signed-off-by: Eric Engestrom <eric@engestrom.ch> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5440>
2020-06-22mesa: Add PrimitiveRestartFixedIndex to gl_constantsNeil Roberts1-0/+2
This is a fine-grained subset of the NV_primitive_restart extension that only uses the fixed indices provided by GLES 3.0. There’s no public extension to advertise this behaviour so the bool is added to gl_constants instead of gl_extensions. Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5559>