mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 11:40:10 +01:00
r600: update nplanes support
This change fixes "piglit/bin/ext_image_dma_buf_import-export -auto".
Fixes: 02aaf360ae ("r600: Implement resource_get_param")
Signed-off-by: Patrick Lerda <patrick9876@free.fr>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37840>
This commit is contained in:
parent
3b1e3a40a8
commit
84dc9af3d4
1 changed files with 2 additions and 1 deletions
|
|
@ -14,6 +14,7 @@
|
||||||
#include "util/u_memory.h"
|
#include "util/u_memory.h"
|
||||||
#include "util/u_pack_color.h"
|
#include "util/u_pack_color.h"
|
||||||
#include "util/u_surface.h"
|
#include "util/u_surface.h"
|
||||||
|
#include "util/u_resource.h"
|
||||||
#include "util/os_time.h"
|
#include "util/os_time.h"
|
||||||
#include "frontend/winsys_handle.h"
|
#include "frontend/winsys_handle.h"
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
@ -442,7 +443,7 @@ static bool r600_texture_get_param(struct pipe_screen *screen,
|
||||||
|
|
||||||
switch (param) {
|
switch (param) {
|
||||||
case PIPE_RESOURCE_PARAM_NPLANES:
|
case PIPE_RESOURCE_PARAM_NPLANES:
|
||||||
*value = 1;
|
*value = util_resource_num(resource);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case PIPE_RESOURCE_PARAM_STRIDE:
|
case PIPE_RESOURCE_PARAM_STRIDE:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue