From 4152ac76d0813d9d0f67d2f04653a13fa6e17433 Mon Sep 17 00:00:00 2001 From: UjinT34 <41110182+UjinT34@users.noreply.github.com> Date: Sat, 7 Mar 2026 00:44:10 +0300 Subject: renderer: refactor Texture, Framebuffer and Renderbuffer (#13437) Part 1 of the renderer refactors --- src/helpers/Monitor.cpp | 2 +- src/helpers/cm/ColorManagement.hpp | 4 ++-- src/helpers/cm/ICC.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/helpers') diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index 557a6315..07156ff1 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -1879,7 +1879,7 @@ uint16_t CMonitor::isDSBlocked(bool full) { // we can't scanout shm buffers. const auto params = PSURFACE->m_current.buffer->dmabuf(); - if (!params.success || !PSURFACE->m_current.texture->m_eglImage /* dmabuf */) { + if (!params.success || !PSURFACE->m_current.texture->isDMA() /* dmabuf */) { reasons |= DS_BLOCK_DMA; if (!full) return reasons; diff --git a/src/helpers/cm/ColorManagement.hpp b/src/helpers/cm/ColorManagement.hpp index 9938ffbf..0103e2a4 100644 --- a/src/helpers/cm/ColorManagement.hpp +++ b/src/helpers/cm/ColorManagement.hpp @@ -17,7 +17,7 @@ #define HDR_REF_LUMINANCE 203.0 #define HLG_MAX_LUMINANCE 1000.0 -class CTexture; +class ITexture; namespace NColorManagement { enum eNoShader : uint8_t { @@ -219,7 +219,7 @@ namespace NColorManagement { bool present = false; size_t lutSize = 33; std::vector lutDataPacked; - SP lutTexture; + SP lutTexture; std::optional vcgt; } icc; diff --git a/src/helpers/cm/ICC.cpp b/src/helpers/cm/ICC.cpp index 34045543..00140c62 100644 --- a/src/helpers/cm/ICC.cpp +++ b/src/helpers/cm/ICC.cpp @@ -226,7 +226,7 @@ static std::expected buildIcc3DLut(cmsHPROFILE profile, SImag Log::logger->log(Log::DEBUG, "3D LUT constructed, size {}", image.icc.lutDataPacked.size()); // upload - image.icc.lutTexture = makeShared(image.icc.lutDataPacked, image.icc.lutSize); + image.icc.lutTexture = g_pHyprRenderer->createTexture(image.icc.lutDataPacked, image.icc.lutSize); return {}; } -- cgit v1.2.3