llvmpipe: Set PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT to 64
authorSiavash Eliasi <siavashserver@gmail.com>
Thu, 28 Nov 2013 08:56:30 +0000 (12:26 +0330)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 29 Jan 2014 16:09:41 +0000 (09:09 -0700)
v2: Fixed setting switch cases prior to
PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT incorrectly.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/gallium/drivers/llvmpipe/lp_screen.c

index e67e927fe316572ae84dd2802f816552e7cc27fc..31571a4ae663506f1be527b606a5b81297790368 100644 (file)
@@ -217,9 +217,10 @@ llvmpipe_get_param(struct pipe_screen *screen, enum pipe_cap param)
       return 16;
    case PIPE_CAP_START_INSTANCE:
    case PIPE_CAP_TEXTURE_MULTISAMPLE:
-   case PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT:
    case PIPE_CAP_CUBE_MAP_ARRAY:
       return 0;
+   case PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT:
+      return 64;
    case PIPE_CAP_TEXTURE_BUFFER_OBJECTS:
       return 1;
    case PIPE_CAP_MAX_TEXTURE_BUFFER_SIZE: