projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb9913c
)
llvmpipe: Temporary workaround to prevent segfault on array textures.
author
José Fonseca
<jfonseca@vmware.com>
Thu, 16 May 2013 14:13:51 +0000
(15:13 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Thu, 16 May 2013 14:14:10 +0000
(15:14 +0100)
src/gallium/drivers/llvmpipe/lp_setup.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_setup.c
b/src/gallium/drivers/llvmpipe/lp_setup.c
index 6b86aae1cb1459bb60678603fc487eba252c9c49..8c9f0c646539b113b3b76e300bbd9bd23bec6602 100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_setup.c
+++ b/
src/gallium/drivers/llvmpipe/lp_setup.c
@@
-748,6
+748,8
@@
lp_setup_set_fragment_sampler_views(struct lp_setup_context *setup,
jit_tex->img_stride[j] = lp_tex->img_stride[j];
}
+ /* FIXME: This is incorrect, as currently layer stride depends on miplevel */
+#if 0
/*
* We don't use anything like first_element (for buffers) or
* first_layer (for arrays), instead adjust the last_element
@@
-763,6
+765,7
@@
lp_setup_set_fragment_sampler_views(struct lp_setup_context *setup,
assert(view->u.tex.first_layer <= view->u.tex.last_layer);
assert(view->u.tex.last_layer < res->array_size);
}
+#endif
}
else {
unsigned view_blocksize = util_format_get_blocksize(view->format);