Skip to content
Snippets Groups Projects
Commit 20d66816 authored by Apertis CI's avatar Apertis CI
Browse files

Import Upstream version 470.141.03

parent b9fccbb2
Branches debian/bookworm
Tags debian/535.171.04-1_deb12u1
4 merge requests!8Merge changes from apertis/v2022-updates into apertis/v2022,!7Backport v2022 <- v2023: Update from debian/bullseye-updates,!5Backport Debian Bullseye Security/Updates,!4Update from debian/bullseye for apertis/v2024dev1
Pipeline #498786 skipped
NVIDIA_VERSION = 470.94
NVIDIA_VERSION = 470.141.03
# This file.
VERSION_MK_FILE := $(lastword $(MAKEFILE_LIST))
......
NVIDIA_VERSION = 470.94
NVIDIA_VERSION = 470.141.03
# This file.
VERSION_MK_FILE := $(lastword $(MAKEFILE_LIST))
......
NVIDIA_VERSION = 470.94
NVIDIA_VERSION = 470.141.03
# This file.
VERSION_MK_FILE := $(lastword $(MAKEFILE_LIST))
......
......@@ -152,6 +152,20 @@ const CtrlTargetTypeInfo *NvCtrlGetTargetTypeInfoByName(const char *name)
}
static int NvCtrlConvertTargetTypeIndex(int nvctrl_type)
{
int i;
for (i = 0; i < targetTypeInfoTableLen; i++) {
if (targetTypeInfoTable[i].nvctrl == nvctrl_type) {
return i;
}
}
return INVALID_TARGET;
}
/*
* Initializes the control panel backend; this includes probing for the
......@@ -1819,7 +1833,8 @@ NvCtrlEventHandleNextEvent(NvCtrlEventHandle *handle, CtrlEvent *event)
(XNVCtrlAttributeChangedEventTarget *) &xevent;
event->type = CTRL_EVENT_TYPE_INTEGER_ATTRIBUTE;
event->target_type = nvctrlevent->target_type;
event->target_type =
NvCtrlConvertTargetTypeIndex(nvctrlevent->target_type);
event->target_id = nvctrlevent->target_id;
event->int_attr.attribute = nvctrlevent->attribute;
......@@ -1838,7 +1853,8 @@ NvCtrlEventHandleNextEvent(NvCtrlEventHandle *handle, CtrlEvent *event)
(XNVCtrlAttributeChangedEventTargetAvailability *) &xevent;
event->type = CTRL_EVENT_TYPE_INTEGER_ATTRIBUTE;
event->target_type = nvctrlevent->target_type;
event->target_type =
NvCtrlConvertTargetTypeIndex(nvctrlevent->target_type);
event->target_id = nvctrlevent->target_id;
event->int_attr.attribute = nvctrlevent->attribute;
......@@ -1858,7 +1874,8 @@ NvCtrlEventHandleNextEvent(NvCtrlEventHandle *handle, CtrlEvent *event)
(XNVCtrlStringAttributeChangedEventTarget *) &xevent;
event->type = CTRL_EVENT_TYPE_STRING_ATTRIBUTE;
event->target_type = nvctrlevent->target_type;
event->target_type =
NvCtrlConvertTargetTypeIndex(nvctrlevent->target_type);
event->target_id = nvctrlevent->target_id;
event->str_attr.attribute = nvctrlevent->attribute;
......@@ -1875,7 +1892,8 @@ NvCtrlEventHandleNextEvent(NvCtrlEventHandle *handle, CtrlEvent *event)
(XNVCtrlBinaryAttributeChangedEventTarget *) &xevent;
event->type = CTRL_EVENT_TYPE_BINARY_ATTRIBUTE;
event->target_type = nvctrlevent->target_type;
event->target_type =
NvCtrlConvertTargetTypeIndex(nvctrlevent->target_type);
event->target_id = nvctrlevent->target_id;
event->bin_attr.attribute = nvctrlevent->attribute;
......
NVIDIA_VERSION = 470.94
NVIDIA_VERSION = 470.141.03
# This file.
VERSION_MK_FILE := $(lastword $(MAKEFILE_LIST))
......
NVIDIA_VERSION = 470.94
NVIDIA_VERSION = 470.141.03
# This file.
VERSION_MK_FILE := $(lastword $(MAKEFILE_LIST))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment