summaryrefslogtreecommitdiff
path: root/gfx/qcms/chain.c
diff options
context:
space:
mode:
authorNicolas Silva <nsilva@mozilla.com>2018-06-19 15:32:29 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-06-30 19:04:10 +0200
commitbc0e646a8bb81b744c3993fc8e938ccd6563c6a8 (patch)
tree32b83bc480cf3d65837dd0d2c2f0d6ea08ccbc21 /gfx/qcms/chain.c
parentecd120e2bd0627a6577f5e693b86adf3895edb47 (diff)
downloaduxp-bc0e646a8bb81b744c3993fc8e938ccd6563c6a8.tar.gz
Bug 1464039 - Only reject qcms transform with invalid grid size if the transform function uses the grid size. r=Bas a=jcristau
Diffstat (limited to 'gfx/qcms/chain.c')
-rw-r--r--gfx/qcms/chain.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gfx/qcms/chain.c b/gfx/qcms/chain.c
index 2b0e707c44..dbae183789 100644
--- a/gfx/qcms/chain.c
+++ b/gfx/qcms/chain.c
@@ -972,7 +972,9 @@ static float* qcms_modular_transform_data(struct qcms_modular_transform *transfo
assert(0 && "Unsupported transform module");
return NULL;
}
- if (transform->grid_size <= 0) {
+ if (transform->grid_size <= 0 &&
+ (transform_fn == qcms_transform_module_clut ||
+ transform_fn == qcms_transform_module_clut_only)) {
assert(0 && "Invalid transform");
return NULL;
}