Skip to content

Commit d1ae9fd

Browse files
FilipFudalasys_zuul
authored andcommitted
Add default value for MaxParameterSize
Change-Id: I053bab422a24ae4dec12b3178f064eb2d84f8074
1 parent f03c3f4 commit d1ae9fd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

IGC/AdaptorOCL/ocl_igc_interface/impl/igc_features_and_workarounds_impl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ CIF_DECLARE_INTERFACE_PIMPL(IgcFeaturesAndWorkarounds) : CIF::PimplBase {
4343

4444
CIF_PIMPL_DECLARE_CONSTRUCTOR() {
4545
CIF::SafeZeroOut(FeTable);
46-
OCLCaps.MaxParameterSize = OCLCaps::MINIMAL_MAX_PARAMETER_SIZE;
4746
}
4847

4948
_SUscSkuFeatureTable FeTable;

IGC/Compiler/compiler_caps.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,9 @@ namespace IGC
8787
// minimal value for MaxParameterSize specified by OpenCL spec
8888
static const unsigned MINIMAL_MAX_PARAMETER_SIZE = 1024;
8989

90-
uint32_t MaxParameterSize; /* maximum size (in bytes) of the arguments
91-
that can be passed to OCL kernel */
90+
// maximum size (in bytes) of the arguments that can be passed to OCL kernel
91+
uint32_t MaxParameterSize = MINIMAL_MAX_PARAMETER_SIZE;
92+
9293
};
9394

9495
class CPlatform;

0 commit comments

Comments
 (0)