Skip to content

Commit

Permalink
[TEST ONLY DONT MERGE] hard code pat index for userptr to pass tgl xe…
Browse files Browse the repository at this point in the history
… drm
  • Loading branch information
Jexu committed Jan 11, 2024
1 parent 38e14b1 commit e2848ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion media_softlet/linux/common/os/xe/mos_bufmgr_xe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,7 @@ mos_bo_alloc_userptr_xe(struct mos_bufmgr *bufmgr,
bo_gem->gem_handle = INVALID_HANDLE;
bo_gem->bo.handle = INVALID_HANDLE;
bo_gem->bo.size = alloc_uptr->size;
bo_gem->pat_index = 1; //Currently, there is no cpu_caching and pat_index for user_ptr bo, hard code for it temporarily.
bo_gem->pat_index = 0; //Currently, there is no cpu_caching and pat_index for user_ptr bo, hard code for it temporarily.
bo_gem->bo.bufmgr = bufmgr;
bo_gem->bo.vm_id = INVALID_VM;
bo_gem->mem_region = MEMZONE_SYS;
Expand Down

0 comments on commit e2848ef

Please sign in to comment.