Skip to content

Instantly share code, notes, and snippets.

@anarsoul
Created September 23, 2019 18:29
Show Gist options
  • Save anarsoul/c8be602efa72542e5cae121048679d80 to your computer and use it in GitHub Desktop.
Save anarsoul/c8be602efa72542e5cae121048679d80 to your computer and use it in GitHub Desktop.
diff --git a/src/gallium/drivers/lima/lima_resource.c b/src/gallium/drivers/lima/lima_resource.c
index e01e60c0465..4be051fd44d 100644
--- a/src/gallium/drivers/lima/lima_resource.c
+++ b/src/gallium/drivers/lima/lima_resource.c
@@ -192,8 +192,8 @@ _lima_resource_create_with_modifiers(struct pipe_screen *pscreen,
if (!should_tile && !drm_find_modifier(DRM_FORMAT_MOD_LINEAR, modifiers, count))
return NULL;
- if (should_tile || (templat->bind & PIPE_BIND_RENDER_TARGET) ||
- (templat->bind & PIPE_BIND_DEPTH_STENCIL)) {
+ if (1) { //should_tile || (templat->bind & PIPE_BIND_RENDER_TARGET) ||
+ //(templat->bind & PIPE_BIND_DEPTH_STENCIL)) {
should_align_dimensions = true;
width = align(templat->width0, 16);
height = align(templat->height0, 16);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment