Fix perf drop on some MI250 nodes - create VABuffers for every submission, and don't use vaMapBuffer/vaUnmapBuffer (#129)

* create VABuffers for every submission, and don't use vaMapBuffer/vaUnmapBuffer

* code clean up

* address review comments
This commit is contained in:
Aryan Salmanpour
2023-12-11 15:40:50 -05:00
committed by GitHub
parent a2dfa8bc26
commit b77d00e38e
2 changed files with 27 additions and 68 deletions
-3
View File
@@ -34,8 +34,6 @@ THE SOFTWARE.
#include "../../commons.h"
#include "../../../api/rocdecode.h"
#define DEFAULT_SLICE_DATA_BUF_SIZE 2 * 1024 * 1024 // 2 MB
#define CHECK_VAAPI(call) {\
VAStatus va_status = call;\
if (va_status != VA_STATUS_SUCCESS) {\
@@ -73,6 +71,5 @@ private:
rocDecStatus CreateDecoderConfig();
rocDecStatus CreateSurfaces();
rocDecStatus CreateContext();
rocDecStatus CreateDataBuffers();
rocDecStatus DestroyDataBuffers();
};