softpipe: Set PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT to 64
authorSiavash Eliasi <siavashserver@gmail.com>
Thu, 28 Nov 2013 08:56:28 +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/softpipe/sp_screen.c

index 2e8df57b45769dbb289ae52574c62ef4b8eea4a5..ac019b585d7c3f18ae0382654ff97685425e84a0 100644 (file)
@@ -166,8 +166,9 @@ softpipe_get_param(struct pipe_screen *screen, enum pipe_cap param)
    case PIPE_CAP_VERTEX_ELEMENT_SRC_OFFSET_4BYTE_ALIGNED_ONLY:
    case PIPE_CAP_START_INSTANCE:
    case PIPE_CAP_TEXTURE_MULTISAMPLE:
-   case PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT:
       return 0;
+   case PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT:
+      return 64;
    case PIPE_CAP_QUERY_TIMESTAMP:
    case PIPE_CAP_CUBE_MAP_ARRAY:
       return 1;