mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-27 02:20:38 +02:00
radeon: fix radeon_create_image_from_name() wrong parameter type
This commit is contained in:
parent
f4e392bf8d
commit
7d40bf2566
1 changed files with 3 additions and 3 deletions
|
|
@ -401,12 +401,12 @@ static const struct __DRI2flushExtensionRec radeonFlushExtension = {
|
|||
};
|
||||
|
||||
static __DRIimage *
|
||||
radeon_create_image_from_name(__DRIcontext *context,
|
||||
radeon_create_image_from_name(__DRIscreen *screen,
|
||||
int width, int height, int format,
|
||||
int name, int pitch, void *loaderPrivate)
|
||||
{
|
||||
__DRIimage *image;
|
||||
radeonContextPtr radeon = context->driverPrivate;
|
||||
radeonScreenPtr radeonScreen = screen->private;
|
||||
|
||||
if (name == 0)
|
||||
return NULL;
|
||||
|
|
@ -442,7 +442,7 @@ radeon_create_image_from_name(__DRIcontext *context,
|
|||
image->pitch = pitch;
|
||||
image->height = height;
|
||||
|
||||
image->bo = radeon_bo_open(radeon->radeonScreen->bom,
|
||||
image->bo = radeon_bo_open(radeonScreen->bom,
|
||||
(uint32_t)name,
|
||||
image->pitch * image->height * image->cpp,
|
||||
0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue