Skip to content

Commit

Permalink
Add GFXCORE_FAMILY field into BiFModule
Browse files Browse the repository at this point in the history
Add possibility to identify the core render family inside BiFModule.
  • Loading branch information
lwesiers authored and igcbot committed Dec 10, 2024
1 parent 824a21c commit b5db57d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions IGC/BiFModule/Headers/bif_flag_controls.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ SPDX-License-Identifier: MIT
#define __BIF_FLAG_CONTROL_H__

BIF_FLAG_CONTROL(PRODUCT_FAMILY, PlatformType)
BIF_FLAG_CONTROL(GFXCORE_FAMILY, RenderFamily)
BIF_FLAG_CONTROL(bool, FlushDenormals)
BIF_FLAG_CONTROL(bool, FastRelaxedMath)
BIF_FLAG_CONTROL(bool, DashGSpecified)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ void BIFFlagCtrlResolution::FillFlagCtrl() {
// inserted for this flag. If needed feed class BIFFlagCtrlResolution
// with new value from outside.
BIF_FLAG_CTRL_SET(PlatformType, PtrCGC->platform.GetProductFamily());
BIF_FLAG_CTRL_SET(RenderFamily, PtrCGC->platform.getPlatformInfo().eRenderCoreFamily);
BIF_FLAG_CTRL_SET(
FlushDenormals,
((PtrCGC->m_floatDenormMode32 == FLOAT_DENORM_FLUSH_TO_ZERO) ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ void GenXBIFFlagCtrlResolution::FillFlagCtrl() {

// Need to feed this correctly
BIF_FLAG_CTRL_SET(PlatformType, 0 /*platform.GetProductFamily()*/);
BIF_FLAG_CTRL_SET(RenderFamily, 0 /*platform.eRenderCoreFamily*/);

BIF_FLAG_CTRL_SET(FlushDenormals, true);
BIF_FLAG_CTRL_SET(DashGSpecified, false);
BIF_FLAG_CTRL_SET(FastRelaxedMath, false);
Expand Down

0 comments on commit b5db57d

Please sign in to comment.