Browse Source
Merge pull request #12323 from liamwhite/buffer-format
fbshare: set external format correctly
pull/15/merge
liamwhite
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
src/core/hle/service/nvnflinger/fb_share_buffer_manager.cpp
|
|
|
@ -171,6 +171,7 @@ void MakeGraphicBuffer(android::BufferQueueProducer& producer, u32 slot, u32 han |
|
|
|
buffer->height = SharedBufferHeight; |
|
|
|
buffer->stride = SharedBufferBlockLinearStride; |
|
|
|
buffer->format = SharedBufferBlockLinearFormat; |
|
|
|
buffer->external_format = SharedBufferBlockLinearFormat; |
|
|
|
buffer->buffer_id = handle; |
|
|
|
buffer->offset = slot * SharedBufferSlotSize; |
|
|
|
ASSERT(producer.SetPreallocatedBuffer(slot, buffer) == android::Status::NoError); |
|
|
|
|