summaryrefslogtreecommitdiff
path: root/src/gallium/include
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2024-04-13 22:29:54 -0400
committerMarge Bot <emma+marge@anholt.net>2024-04-22 01:42:52 +0000
commite5f133ccc426a197c48a4e88f5377f943f078180 (patch)
tree94ed1f400d46899e3e322d106958333a662953ae /src/gallium/include
parent959891e33f61ab8d0590e736198bf48e48d2105c (diff)
util: import pipe_box and its helpers
We'll use them. There are also new helpers that we'll use. Reviewed-by: Yonggang Luo <luoyonggang@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28733>
Diffstat (limited to 'src/gallium/include')
-rw-r--r--src/gallium/include/pipe/p_state.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h
index c20550e8c3b..7e4a57d3c27 100644
--- a/src/gallium/include/pipe/p_state.h
+++ b/src/gallium/include/pipe/p_state.h
@@ -49,6 +49,7 @@
#include "util/compiler.h"
#include "p_defines.h"
#include "util/format/u_formats.h"
+#include "util/box.h"
#ifdef __cplusplus
@@ -548,23 +549,6 @@ struct pipe_image_view
/**
- * Subregion of 1D/2D/3D image resource.
- */
-struct pipe_box
-{
- /* Only "x" and "width" are used to represent buffer ranges.
- * The maximum representable texture size is ANY x ANY x 16K.
- */
- int32_t x;
- int32_t width;
- int32_t y;
- int32_t height;
- int16_t z;
- int16_t depth;
-};
-
-
-/**
* A memory object/resource such as a vertex buffer or texture.
*/
struct pipe_resource