mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 12:32:40 +02:00
Const correctness in nvGpuZbcAddColor (and fix comment typo)
This commit is contained in:
parent
320b054f6e
commit
d966bee9fa
@ -11,5 +11,5 @@ const nvioctl_zcull_info* nvGpuGetZcullInfo(void);
|
||||
const u32* nvGpuGetTpcMasks(u32 *num_masks_out);
|
||||
|
||||
Result nvGpuZbcGetActiveSlotMask(u32 *out_slot, u32 *out_mask);
|
||||
Result nvGpuZbcAddColor(u32 color_l2[4], u32 color_ds[4], u32 format);
|
||||
Result nvGpuZbcAddColor(const u32 color_l2[4], const u32 color_ds[4], u32 format);
|
||||
Result nvGpuZbcAddDepth(float depth);
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include "nvidia/ioctl.h"
|
||||
#include "nvidia/gpu.h"
|
||||
|
||||
// Official software hardcodes this for both Tegra X1 (and even K1).
|
||||
// Official software hardcodes this for Tegra X1 (and even K1).
|
||||
#define NUM_TPC_MASKS 1
|
||||
|
||||
static u32 g_ctrlgpu_fd = -1;
|
||||
@ -90,7 +90,7 @@ Result nvGpuZbcGetActiveSlotMask(u32 *out_slot, u32 *out_mask)
|
||||
return rc;
|
||||
}
|
||||
|
||||
Result nvGpuZbcAddColor(u32 color_l2[4], u32 color_ds[4], u32 format)
|
||||
Result nvGpuZbcAddColor(const u32 color_l2[4], const u32 color_ds[4], u32 format)
|
||||
{
|
||||
return nvioctlNvhostCtrlGpu_ZbcSetTable(g_ctrlgpu_fd, color_ds, color_l2, 0, format, NVGPU_ZBC_TYPE_COLOR);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user