gallium: allow more PIPE_RESOURCE_ driver flags

Submitted by Marek Olšák on Jan. 30, 2019, 7:21 p.m.

Details

Message ID 20190130192140.4480-1-maraeo@gmail.com
State New
Headers show
Series "gallium: allow more PIPE_RESOURCE_ driver flags" ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Marek Olšák Jan. 30, 2019, 7:21 p.m.
From: Marek Olšák <marek.olsak@amd.com>

radeonsi has 8 and will probably have 9 soon.
---
 src/gallium/include/pipe/p_defines.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h
index 867d0cb5d74..1f2a3469cc9 100644
--- a/src/gallium/include/pipe/p_defines.h
+++ b/src/gallium/include/pipe/p_defines.h
@@ -480,21 +480,21 @@  enum pipe_flush_flags
 #define PIPE_BIND_LINEAR      (1 << 21)
 
 
 /**
  * Flags for the driver about resource behaviour:
  */
 #define PIPE_RESOURCE_FLAG_MAP_PERSISTENT (1 << 0)
 #define PIPE_RESOURCE_FLAG_MAP_COHERENT   (1 << 1)
 #define PIPE_RESOURCE_FLAG_TEXTURING_MORE_LIKELY (1 << 2)
 #define PIPE_RESOURCE_FLAG_SPARSE                (1 << 3)
-#define PIPE_RESOURCE_FLAG_DRV_PRIV    (1 << 16) /* driver/winsys private */
+#define PIPE_RESOURCE_FLAG_DRV_PRIV    (1 << 8) /* driver/winsys private */
 #define PIPE_RESOURCE_FLAG_ST_PRIV     (1 << 24) /* state-tracker/winsys private */
 
 /**
  * Hint about the expected lifecycle of a resource.
  * Sorted according to GPU vs CPU access.
  */
 enum pipe_resource_usage {
    PIPE_USAGE_DEFAULT,        /* fast GPU access */
    PIPE_USAGE_IMMUTABLE,      /* fast GPU access, immutable */
    PIPE_USAGE_DYNAMIC,        /* uploaded data is used multiple times */

Comments

Looks ok to me, there's still a few bits left luckily...
Reviewed-by: Roland Scheidegger <sroland@vmware.com>


Am 30.01.19 um 20:21 schrieb Marek Olšák:
> From: Marek Olšák <marek.olsak@amd.com>

> 

> radeonsi has 8 and will probably have 9 soon.

> ---

>  src/gallium/include/pipe/p_defines.h | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h

> index 867d0cb5d74..1f2a3469cc9 100644

> --- a/src/gallium/include/pipe/p_defines.h

> +++ b/src/gallium/include/pipe/p_defines.h

> @@ -480,21 +480,21 @@ enum pipe_flush_flags

>  #define PIPE_BIND_LINEAR      (1 << 21)

>  

>  

>  /**

>   * Flags for the driver about resource behaviour:

>   */

>  #define PIPE_RESOURCE_FLAG_MAP_PERSISTENT (1 << 0)

>  #define PIPE_RESOURCE_FLAG_MAP_COHERENT   (1 << 1)

>  #define PIPE_RESOURCE_FLAG_TEXTURING_MORE_LIKELY (1 << 2)

>  #define PIPE_RESOURCE_FLAG_SPARSE                (1 << 3)

> -#define PIPE_RESOURCE_FLAG_DRV_PRIV    (1 << 16) /* driver/winsys private */

> +#define PIPE_RESOURCE_FLAG_DRV_PRIV    (1 << 8) /* driver/winsys private */

>  #define PIPE_RESOURCE_FLAG_ST_PRIV     (1 << 24) /* state-tracker/winsys private */

>  

>  /**

>   * Hint about the expected lifecycle of a resource.

>   * Sorted according to GPU vs CPU access.

>   */

>  enum pipe_resource_usage {

>     PIPE_USAGE_DEFAULT,        /* fast GPU access */

>     PIPE_USAGE_IMMUTABLE,      /* fast GPU access, immutable */

>     PIPE_USAGE_DYNAMIC,        /* uploaded data is used multiple times */

>