Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion iaa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ int UncompressIAA(uint8_t* input, uint32_t* input_length, uint8_t* output,
job->dictionary = nullptr;

qpl_status status = qpl_execute_job(job);
if (status != QPL_STS_OK) {
if (status != QPL_STS_OK && status != QPL_STS_MORE_OUTPUT_NEEDED) {
Log(LogLevel::LOG_ERROR, "UncompressIAA() Line ", __LINE__,
" qpl_execute_job status ", status, "\n");
return 1;
Expand Down
1 change: 1 addition & 0 deletions logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ inline void Log(LogLevel level, Args&&... args) {
}

std::ostream& stream = GetLogStream();
stream << std::dec;
switch (level) {
case LogLevel::LOG_ERROR:
stream << "Error: ";
Expand Down
1 change: 1 addition & 0 deletions qat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ void QATJob::Init(QzSessionPtr &qzSession, CompressedFormat format,
}

// Initialize QAT hardware
qzSetLogLevel(LOG_NONE);
int status = qzInit(session.get(), 0);
if (status != QZ_OK && status != QZ_DUPLICATE) {
Log(LogLevel::LOG_ERROR, "qzInit() failure Line ", __LINE__, " session ",
Expand Down
2 changes: 2 additions & 0 deletions qat.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

#define VISIBLE_FOR_TESTING __attribute__((visibility("default")))

inline constexpr unsigned int QAT_DEST_BUFFER_MIN_SIZE = 512;

inline constexpr unsigned int QAT_HW_BUFF_SZ = QZ_HW_BUFF_MAX_SZ;

class QATJob {
Expand Down
3 changes: 1 addition & 2 deletions zlib_accel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ int ZEXPORT deflate(z_streamp strm, int flush) {
#endif
#ifdef USE_QAT
qat_available =
configs[USE_QAT_COMPRESS] &&
configs[USE_QAT_COMPRESS] && output_len >= QAT_DEST_BUFFER_MIN_SIZE &&
SupportedOptionsQAT(deflate_settings->window_bits, input_len);
#endif

Expand Down Expand Up @@ -1352,7 +1352,6 @@ int ZEXPORT gzeof(gzFile file) {
GzipFile* gz = gzip_files.Get(file);
return gz->reached_eof;
}

#if defined(__clang__)
#pragma clang attribute pop
#endif