Skip to content

Commit

Permalink
drm: Hook up cv_drm_debug_disable_regamma_tf
Browse files Browse the repository at this point in the history
  • Loading branch information
misyltoad committed Apr 8, 2024
1 parent e282eea commit 41389f7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/drm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2640,7 +2640,12 @@ int drm_prepare( struct drm_t *drm, bool async, const struct FrameInfo_t *frameI
if ( drm->pCRTC )
{
if ( drm->pCRTC->GetProperties().VALVE1_CRTC_REGAMMA_TF )
drm->pCRTC->GetProperties().VALVE1_CRTC_REGAMMA_TF->SetPendingValue( drm->req, drm->pending.output_tf, bForceInRequest );
{
if ( !cv_drm_debug_disable_regamma_tf )
drm->pCRTC->GetProperties().VALVE1_CRTC_REGAMMA_TF->SetPendingValue( drm->req, drm->pending.output_tf, bForceInRequest );
else
drm->pCRTC->GetProperties().VALVE1_CRTC_REGAMMA_TF->SetPendingValue( drm->req, DRM_VALVE1_TRANSFER_FUNCTION_DEFAULT, bForceInRequest );
}
}

drm->flags = flags;
Expand Down

0 comments on commit 41389f7

Please sign in to comment.