Remove unnecessary set_buffer_count
bug 8669032
The extra set generates errors when the producer node changes
the number of buffers needed by the system.
Change-Id: Ied0f918a09f08386d16ec4266454af6af120fac4
diff --git a/driver/rsdAllocation.cpp b/driver/rsdAllocation.cpp
index 28b71ce..ef7d024 100644
--- a/driver/rsdAllocation.cpp
+++ b/driver/rsdAllocation.cpp
@@ -694,11 +694,6 @@
if (nw != NULL) {
int32_t r;
uint32_t flags = 0;
- r = native_window_set_buffer_count(nw, 3);
- if (r) {
- rsc->setError(RS_ERROR_DRIVER, "Error setting IO output buffer count.");
- goto error;
- }
if (alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_SCRIPT) {
flags |= GRALLOC_USAGE_SW_READ_RARELY | GRALLOC_USAGE_SW_WRITE_OFTEN;