OSDN Git Service

nvc0/ir: add support for compute UBOs on Kepler
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 30 Mar 2016 22:50:39 +0000 (00:50 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 1 Apr 2016 20:26:24 +0000 (22:26 +0200)
commit4f58b78c309db372d408912ca87e88d319b895da
treee4f0fffbfb8fa8764d4f02cf671f72fecacf4810
parent3b246a71d7fe12c4b0670a9dadf566ea3eca1128
nvc0/ir: add support for compute UBOs on Kepler

Make sure to avoid out of bounds access in presence of indirect
array indexing by loading the size from the driver constant buffer.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.h