Home | History | Annotate | Download | only in driver
      1 /*
      2  * Copyright (C) 2014 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 #include "rsdCore.h"
     18 #include "rsdSampler.h"
     19 
     20 #include "rsContext.h"
     21 #include "rsSampler.h"
     22 
     23 #ifndef RS_COMPATIBILITY_LIB
     24 #include "rsProgramVertex.h"
     25 #include "rsProgramFragment.h"
     26 
     27 #include <GLES/gl.h>
     28 #include <GLES/glext.h>
     29 #endif
     30 
     31 using android::renderscript::Context;
     32 using android::renderscript::Type;
     33 using android::renderscript::rs_type;
     34 
     35 bool rsdTypeInit(const Context *, const Type *t) {
     36     return true;
     37 }
     38 
     39 void rsdTypeDestroy(const Context *rsc, const Type *t) {
     40 }
     41 
     42 void rsdTypeUpdateCachedObject(const Context *rsc, const Type *t,
     43                                rs_type *obj) {
     44     obj->p = t;
     45 #ifdef __LP64__
     46     obj->unused1 = nullptr;
     47     obj->unused2 = nullptr;
     48     obj->unused3 = nullptr;
     49 #endif
     50 }
     51